Commit Graph

5079 Commits

Author SHA1 Message Date
pancake
be74e633ca Fix Cs from projects 2014-09-23 11:55:11 +02:00
pancake
fef835ccb6 Fix file-mmap-write on w32 2014-09-23 10:59:52 +02:00
Skia
baf8a068b7 Fix CID 1240150, 1240149, 1240151 2014-09-23 10:25:18 +02:00
pancake
34365c7bb3 Handle cparse definitions in rbin sdb 2014-09-23 10:23:28 +02:00
pancake
2b313c832b Add asm.maxrefs to display xrefs in columns if they are too many 2014-09-23 10:15:19 +02:00
pancake
09a43efc8d Reimplemented and working RAnalFcnLocal as RAnalFcnLabel in Sdb 2014-09-23 09:37:21 +02:00
pancake
932279ed7e Initial work to disable FCN_OLD. 2014-09-23 00:40:35 +02:00
pancake
794b2b2c1c Fix x86.udis rel jmp 2014-09-22 23:07:10 +02:00
pancake
08cfb55f19 Avoid double-attach in the correct way 2014-09-22 23:04:58 +02:00
Anton Kochkov
5d2a8fb603 Fix build 2014-09-23 00:47:02 +04:00
Anton Kochkov
40b7048edc Fix warnings for TMS320C55x+ 2014-09-23 00:44:32 +04:00
LemonBoy
98830cf44c Don't re-attach 2014-09-22 22:05:59 +02:00
pancake
7e1875e4ff Fix some warnings 2014-09-22 19:45:14 +02:00
pancake
2c6d56ae25 bitfield printing should be fine now 2014-09-22 18:40:38 +02:00
pancake
bd3b5fe636 More fixes for bitfield prints 2014-09-22 18:08:29 +02:00
condret
606291ef85 enable following a ccall via "enter" 2014-09-22 17:25:59 +02:00
pancake
bb6e9c0074 Enhace 'tb' (bitfield types) output 2014-09-22 17:23:17 +02:00
pancake
9ee9521a59 Also quickseek to CCALLs ('0'-'9' in visual disasm) 2014-09-22 17:00:18 +02:00
pancake
b0b16a7318 Allow af and df to resize+ redefine new function (anal testing) 2014-09-22 15:00:41 +02:00
pancake
8863e9917e Fix '[$$]'-like expressions 2014-09-22 13:54:08 +02:00
pancake
342ff7ba4f Bring back the anal vars (wip), Fix Vvg, and VJK with screen boundaries 2014-09-22 13:45:36 +02:00
pancake
1306653d4a Working with 'afa' and 'afv' again. Updated sdb for some goodies 2014-09-22 04:22:47 +02:00
pancake
bd2da0557e Fix infinite analysis loop issue 2014-09-22 02:10:27 +02:00
pancake
196cfd0534 Initial major cleanup of the RAnal module 2014-09-22 01:39:24 +02:00
condret
2a4b1f0d96 remove a useless conditional 2014-09-21 23:29:25 +02:00
pancake
c896cf7d50 Fix pda 2014-09-21 03:49:47 +02:00
Maijin
1982aa498f PE Parsing: Add pe_image_data_directory
PE Parsing: Add pe_image_data_directory
2014-09-21 03:25:25 +02:00
pancake
d6aeae624f Implement te,tb,tk and pf E, pf B to handle enum and bitfields 2014-09-21 01:39:18 +02:00
Maijin
4f8ee8f22b PE parsing:add pe_nt_img_header support 2014-09-21 00:04:54 +02:00
Adam Pridgen
2d3187670d Fix double check and a minor bug 2014-09-21 00:04:19 +02:00
pancake
46ccb5e361 Fix pf x? (b)ee ;pf.a crash 2014-09-20 22:58:46 +02:00
deeso
55fe0a9e9a Added command that 'bruteforces' the parsing of a class file in a blob of data 2014-09-20 19:46:21 +02:00
condret
ca73e908e7 replace the "R_TRUE >" foo with "R_TRUE !=" foo and fix #1388 2014-09-20 19:31:52 +02:00
pancake
ac22f9e25c Fix several COFF parsing crashes. Bring back /B 2014-09-20 19:28:56 +02:00
pancake
43d213853f Fix PE crash 2014-09-20 18:43:04 +02:00
pancake
e627c05c4a Avoid infinite loading times for some crafted mach0 2014-09-20 18:15:09 +02:00
pancake
9977a4721d Fix some mach0 crashes 2014-09-20 17:45:06 +02:00
pancake
5ff1de1068 Fix another ELF parsing crash (thanks @maijin for reporting) 2014-09-20 16:12:44 +02:00
jvoisin
86c3d0e70f Fix some trivial coverity issues 2014-09-20 15:56:34 +02:00
pancake
fc2bb2af7f Fix 4GB issue file and some more warnings 2014-09-20 15:53:29 +02:00
pancake
be7ef9d890 More warning cleanup 2014-09-20 15:35:08 +02:00
pancake
4c4173769b Revert "Fixing the issue where file size exceeds size of an integer":
3adb00621b
e2afa84443
0761955fdb
17cc18fad0
135c62fb5d
2014-09-20 15:33:59 +02:00
pancake
99b8dab78b Fix two enum-cast warnings 2014-09-20 15:21:25 +02:00
pancake
143033b5d6 Add PE DOS header struct in r2 -nn (via maijin) 2014-09-20 13:27:54 +02:00
pancake
cb83310c8b Restrict function size limits, avoid 4GB size functions 2014-09-20 10:50:26 +02:00
pancake
240e0d98a9 Fix some warnings 2014-09-20 10:13:48 +02:00
pancake
68b38a80de Bring back the JMP_IS_EOB analysis feature 2014-09-20 09:43:31 +02:00
condret
f6141a64a8 fix 2 gcc Wunused warnings in vio 2014-09-19 23:59:06 +02:00
condret
7ff2652577 more io cleanup 2014-09-18 22:57:31 +02:00
pancake
14ae021780 Remove debug from afna 2014-09-18 22:01:59 +02:00
condret
977c3834a2 add r_io_is_valid_offset and r_core_is_valid_offset 2014-09-18 21:28:02 +02:00
Jonathan Neuschäfer
4f7526d721 Add "const" in two places 2014-09-18 18:56:57 +02:00
Jonathan Neuschäfer
b87c3be119 "e asm.arch=nonexistent" should not change anal.arch 2014-09-18 18:56:57 +02:00
Jonathan Neuschäfer
f9294bfd0f Improve "C?" 2014-09-18 18:56:57 +02:00
Jonathan Neuschäfer
a29b8cdf33 vio.c: add a missing "int" to r_io_pwrite's declaration 2014-09-18 18:56:57 +02:00
Jonathan Neuschäfer
9b5d4d53bb fix an off-by-one bug in r_isprint
Array accesses, yeah.
2014-09-18 18:56:57 +02:00
Jonathan Neuschäfer
0e6d969e60 Make webui and r2agent a little more ASan-friendly, use strncmp. 2014-09-18 18:56:57 +02:00
Jonathan Neuschäfer
64574ac5fb Fix an one-byte buffer overflow in string_scan_range 2014-09-18 18:56:57 +02:00
Fedor Sakharov
0592964fe9 propeller initial commit 2014-09-18 18:51:24 +02:00
condret
c79bd47335 deprecate r_core_sync_view_by_file 2014-09-18 18:27:58 +02:00
condret
11692a7a62 deprecate r_core_sync_view_by_fd 2014-09-18 18:27:38 +02:00
dso
17cc18fad0 Update lang.c 2014-09-18 09:01:33 -05:00
Adam Pridgen
135c62fb5d Fixing *most* warnings related to the change in r_file_slurp 2014-09-17 22:37:54 -05:00
pancake
2fb53d80e6 Add aa0, aa? and aa* commands (aa now runs afna by default) 2014-09-17 23:54:36 +02:00
deeso
3adb00621b Fixing the issue where file size exceeds size of an integer 2014-09-17 23:53:25 +02:00
condret
452669d941 more cleanup in r_core_block_read 2014-09-17 23:32:59 +02:00
pancake
a50af2ad22 Fix step over left breakpoint 2014-09-17 17:57:30 +02:00
LemonBoy
76fa1fac1c Reap the breakpoint list correctly 2014-09-17 17:57:27 +02:00
LemonBoy
35945e059c Use the computed register size when requesting registers from host.
Fix a handful of warnings.
2014-09-17 17:57:24 +02:00
LemonBoy
9a90664b2a Fix r_debug_step_over 2014-09-17 17:57:21 +02:00
LemonBoy
9fa0766f21 More error checking 2014-09-17 17:57:17 +02:00
LemonBoy
f1bf11275a Optimize r_debug_continue_until 2014-09-17 17:57:11 +02:00
LemonBoy
707089c3a9 Fix various debugger operations. Fix a ptrace-related bug. 2014-09-17 17:57:08 +02:00
pancake
442475a690 Switch to GNU for ARM
- anal.arm.cs - have a crash that needs to be found and fixed
- asm.arm.cs - show negative destination addresses sometimes
2014-09-17 17:53:50 +02:00
Jody Frankowski
0b15a410d9 Fix coverity found memleaks in flirt.c. Remove confusing defines 2014-09-17 16:55:39 +02:00
Skia
be6f55b772 Make the [] in pf work like an array (#1349) 2014-09-17 15:58:44 +02:00
Skia
f21748d465 Make the code cleaner and more readable in pf 2014-09-17 15:58:38 +02:00
Torben Nielsen
c9ea8bc718 Trying to fix issue #1354: Program memory width is 16 bit, JMP/CALL addresses should be converted to 8 bit memory width when disassembling. 2014-09-17 15:40:58 +02:00
pancake
90dad36646 Fix w32 build (oops dislexia) 2014-09-17 15:37:30 +02:00
defragger
51b6112925 fixes the w32 native debugging and error messages 2014-09-17 15:26:00 +02:00
pancake
ce2483f637 Use RCons in 'ik' (fix some tests) 2014-09-17 15:23:56 +02:00
pancake
73743ae5ae Fix a regression in previous elf change 2014-09-17 15:19:40 +02:00
condret
33748aa172 tiny cleanup in r_core_block_read // I'm not finished here 2014-09-17 15:13:18 +02:00
pancake
9be7cc789c Fix the rest of fuzzed elfs crashes 2014-09-17 13:28:30 +02:00
pancake
ae06dc24b5 Fix file2 and file3 fuzzed ELF files 2014-09-17 11:01:36 +02:00
pancake
7695404e6b Only anal.next if address within an executable section 2014-09-17 10:42:54 +02:00
pancake
cc74ade290 Fix VB title issue 2014-09-17 10:36:38 +02:00
pancake
92856e0e37 Fix visual disasm for arm.gnu plugin 2014-09-17 10:30:59 +02:00
condret
effa16c871 add new color-profile: focus 2014-09-17 01:52:30 +02:00
condret
14d1a37ab6 fix f.- ; do not try to free the stack 2014-09-17 00:57:18 +02:00
pancake
dec5580bf4 Fix some ELF OOB crashes (thanks @maijin for reporting) 2014-09-17 00:09:00 +02:00
pancake
a902835536 Fix bugs in esil for arm.cs/x86.cs and a crash in arm.cs esil and pie 2014-09-16 23:36:43 +02:00
pancake
800615faf7 Fix many x86.udis86 ESIL expressions 2014-09-16 23:02:58 +02:00
condret
f4a1b0a3bd fix #1366 and make r_io_close keeping the current desc if it does not get close 2014-09-16 23:12:37 +02:00
pancake
5290277ebd Implement 'pie' to disasm code and esil at the same time 2014-09-16 22:32:15 +02:00
Jonathan Neuschäfer
a6a062a7a1 Fix -1 calculation in rpnesil.c
It calculated bit-2 mod 0x40, because 0x3e == 0x40-2.
2014-09-16 22:35:26 +02:00
pancake
de61bfda4c Fix #1365 - esil negative value in mov 2014-09-16 21:58:02 +02:00
defragger
fdceb6373c fixes the 16bit issue, we still need to improve the performance here 2014-09-16 16:07:16 +02:00
futex
d2cd30b7cb add setne instruction
add setne instruction
2014-09-16 15:22:57 +02:00
pancake
271fb166df Fix more issues on /E and esil ret values 2014-09-16 01:24:34 +02:00
pancake
f3f7fbbb23 Fix /E 2014-09-16 00:59:21 +02:00
pancake
ed8fb312ed Implement izzj and izz* 2014-09-15 23:49:51 +02:00
pancake
4c133d5891 Implement 'izz' (quick-mode-on) 2014-09-15 23:47:23 +02:00
Skia
951c07b03e Make pf* work and Fix #1349 in pf 2014-09-15 23:07:01 +02:00
pancake
058cae62f2 Set new separator for nested struct in pf 2014-09-15 22:56:31 +02:00
pancake
3f8b2f1ff1 Fix afna for PE bins (jmp data-references) 2014-09-15 22:44:32 +02:00
pancake
effd1856a1 Handle 'reloc.' rules, but requires better analysis (ujmp) 2014-09-15 19:35:49 +02:00
pancake
d85cf28e84 Revert "Remove debug code in avr disasm /via @svensin"
This reverts commit 59d39473c8.
2014-09-15 17:45:52 +02:00
pancake
3b69dae924 Initial implementation of /E esil search engine 2014-09-15 17:13:33 +02:00
condret
57f3f07ce1 oups; clean up the removal of weird-shit in r_core_read_at 2014-09-15 14:37:51 +02:00
condret
a5772fe3ea remove some weird-shit-wrapper-code in r_core_read_at 2014-09-15 13:50:42 +02:00
pancake
59d39473c8 Remove debug code in avr disasm /via @svensin 2014-09-15 12:16:22 +02:00
pancake
227fb0242f Fix #1335 - Fix CC! 2014-09-15 10:18:00 +02:00
pancake
4c0f2cc884 Fix p/mips_gnu.mk 2014-09-15 03:37:26 +02:00
pancake
7e37fb0131 Fix #1292 - Fix file create and write on w32 2014-09-15 03:35:02 +02:00
condret
9f84b020de out-comment and replace a weird line of code 2014-09-15 03:37:34 +02:00
pancake
8be98f3d82 Use () instead of [] for casting nested structs in pf 2014-09-15 00:36:49 +02:00
pancake
0f3344e284 Fix r2 -d -c oo ^D issue 2014-09-15 00:32:49 +02:00
Jody Frankowski
b6e76890bd Rename eof to buf_eof, fixes windows build 2014-09-14 23:06:57 +02:00
LemonBoy
27e9d2e938 Do not allow duplicate registers in the profiles. Free the RRegItem properly. Fix the line count in the parser. Fix the w32 debug profile. 2014-09-14 22:45:09 +02:00
Jody Frankowski
7af5cf4869 Fix wrong check of return value in flirt 2014-09-14 22:25:44 +02:00
Jody Frankowski
3a5d5aad3f Fix flirt segfault on non-existing file 2014-09-14 18:46:43 +02:00
Jody Frankowski
f227d254cc Add a flirt signature parser, scan and dumper. 2014-09-14 18:25:58 +02:00
condret
3b5a1a5d83 make 3 or 2 gb-esil-strings more accurate 2014-09-14 16:29:01 +02:00
pancake
a7395d5afc Add anal.nopskip config var 2014-09-14 11:52:30 +02:00
deeso
c185ca44c8 Fixed a bug that did not correctly restart va_* after reallocating the r_cons_instance's data buffer for printing 2014-09-13 21:26:40 -05:00
pancake
db9c22aade Fix memleak in core/anal 2014-09-14 04:24:03 +02:00
pancake
7029eab6af Enforce register arena, better fit size. Fix native mips reg profile size 2014-09-14 02:52:30 +02:00
pancake
7129805cb8 Avoid negative console resolutions 2014-09-14 01:07:15 +02:00
Adam Pridgen
70104d84d6 only perform jsonification of a bin obj 2014-09-13 12:00:36 -05:00
pancake
cfc8383f4a Fix #1340 - 's <mathop>' 2014-09-13 18:15:11 +02:00
Jonathan Neuschäfer
1d337c6794 asm_bf: fix an out of bounds read and don't combine traps 2014-09-13 17:50:42 +02:00
deeso
083394175c Adding JSON output for the java prototypes
- Created a simple JSON string builder lib so its
  easier to build the JSON strings.
- Fixed errors and missing symbols on Mac Build
2014-09-13 17:37:11 +02:00
pancake
3dd52c3d22 Quote the 'w' command for better write strings from pf. Need string filtering 2014-09-13 12:01:36 +02:00
pancake
51af2d508f Disable proc/pid/mem coz this bug: while : ; r2 -qc 'oo;px' -d ls ; done 2014-09-13 03:57:12 +02:00
pancake
1117fd8c4c Verify realloc in arena for early bug catching 2014-09-13 03:20:00 +02:00
pancake
a65a4739a9 Implement CLEAR rpnesil instruction 2014-09-13 02:39:12 +02:00
condret
4cf408a83e update hook_flag_read, again!!! 2014-09-13 02:26:08 +02:00
pancake
63f00d0b0f Implement working ESIL backend for Brainfuck. Requires manual init 2014-09-13 02:24:50 +02:00
Jonathan Neuschäfer
3506fcbefe bf: remove a useless heap allocation 2014-09-13 00:47:58 +02:00
Jonathan Neuschäfer
c16588aa4a bf: clarify repetition counting 2014-09-13 00:47:58 +02:00
Jonathan Neuschäfer
c4a379ad51 bf: rename peek/poke to in/out 2014-09-13 00:47:58 +02:00
Jonathan Neuschäfer
29601c3b54 Fix display of repeated brainfuck instructions
An snprintf with the same source and destination buffer caused the buffer to
be read as an empty string.

To quote the Linux Manpages project:

  C99 and POSIX.1-2001 specify that the results are undefined if a call to
  sprintf(), snprintf(), vsprintf(), or vsnprintf() would  cause  copying  to
  take  place  between  objects that overlap (e.g., if the target string array
  and one of the supplied input arguments refer to the same buffer).
2014-09-13 00:47:58 +02:00
pancake
1882ea8e5a Fix #1320 - crash in pf 2014-09-13 00:36:50 +02:00
LemonBoy
61eaa5cafc Settle the pointer ownership issue once for all 2014-09-13 00:30:15 +02:00
Jonathan Neuschäfer
f040d95a86 Ve: show the description of the selected var
This still sucks a little. Long lines should be broken.
2014-09-13 00:17:37 +02:00
Jonathan Neuschäfer
163ddbd8d9 pd: use the TODO esil keyword, instead of ": ". 2014-09-13 00:17:37 +02:00
Jonathan Neuschäfer
ef7a1e0ad0 Document the difference between "rasm2 -L" and "e asm.arch=?", in source
This difference could also be removed.
2014-09-13 00:17:37 +02:00
Jonathan Neuschäfer
8d13b40365 r_asm.h: slightly clarify a comment 2014-09-13 00:17:37 +02:00
Jonathan Neuschäfer
29c37c9157 Fix pzf, and a little typo 2014-09-13 00:17:37 +02:00