Commit Graph

285 Commits

Author SHA1 Message Date
pancake
262b0cfd55 A fix for a MACH0 crash 2014-12-11 19:57:01 +01:00
pancake
acade3fee7 Fix more crashes on DEX 2014-12-11 17:21:15 +01:00
pancake
a984b05720 Fix underflow in RIO and clean some null derefs in RBin 2014-12-04 13:02:11 +01:00
pancake
9a0d62da22 Finally remove the void*debug pointer from RIOPlugin (use bool isdbg) 2014-11-21 11:36:51 +01:00
pancake
b1da2b30e3 Fix #1670 - r2 -d 'ls -l /' working again 2014-11-18 11:19:04 +01:00
pancake
b158a7a63b Fix rabin2 -z regression 2014-11-05 09:46:11 +01:00
pancake
b833c21948 Fix another off-by-one crash in rabin2 -z 2014-11-05 00:37:58 +01:00
pancake
7eea922f35 Fix a tiny off-by-one in rabin2 -z 2014-11-05 00:17:48 +01:00
pancake
cab0c6ae49 Fix crash in r_utf8_decode 2014-11-04 23:17:52 +01:00
Fedor Sakharov
d9a78f33b4 bin: Load symbols before relocations 2014-11-04 13:59:54 +01:00
jvoisin
a60d82b800 Fix a lot of warnings for GCC
Less than 20 warnings remaining on my x86_64 GCC 4.9.1
2014-10-26 13:50:58 +01:00
pancake
e807868b78 Honor rabin2 -N minstrlen for -z,-zz,-zzz 2014-10-24 20:13:18 +02:00
pancake
131b9092c2 Implement rabin2 -zzz (dump strings to stdout, works on huge files) 2014-10-24 18:26:37 +02:00
pancake
da866539ee Fix 'oo' bug (sync rcorefile and riofile lists), Better 'ob' 2014-10-17 00:04:52 +02:00
pancake
0e0dc63aa8 Fix r2 -d problem not loading syms. Redo the ASLR/PIE again 2014-10-15 15:41:02 +02:00
pancake
abd7bcda90 Hackaround for pie bins 2014-10-08 01:54:09 +02:00
pancake
9f962a05ab Fix r2 -zz and rabin2 -zz, also set default minstrlen for ELF/ELF64 2014-10-07 22:55:10 +02:00
pancake
38a1ded448 Fix rabin2 -a arm -b32 -c ... 2014-09-26 18:13:55 +02:00
pancake
ac22f9e25c Fix several COFF parsing crashes. Bring back /B 2014-09-20 19:28:56 +02:00
pancake
fc2bb2af7f Fix 4GB issue file and some more warnings 2014-09-20 15:53:29 +02:00
Jonathan Neuschäfer
64574ac5fb Fix an one-byte buffer overflow in string_scan_range 2014-09-18 18:56:57 +02:00
pancake
32173be9ee Fix RBinInfo.static 2014-09-09 00:33:31 +02:00
pancake
8204e78c3f Fix RBin & RLang related crashes (fix lot of memleaks and dblfrees) 2014-08-29 16:27:44 +02:00
pancake
67171b86a5 Hackaround to get r2 -B0 working. 2014-08-28 00:19:51 +02:00
Jonathan Neuschäfer
ed2470bc2c Avoid a few out-of-bounds reads
* When "omr" is called without any arguments
  + instead just do nothing
* in string_scan_range
* unbounded pdj now works under ASAN.
  + But what did the +5 do there?
* on px/ without arguments
2014-08-26 03:45:14 +02:00
pancake
cda3d9c44b Update sdb and workaround all sdb finalization issues until proper fix is done in Sdb 2014-08-25 01:10:10 +02:00
jvoisin
052d576ae6 coverifix 2014-08-24 19:40:08 +02:00
pancake
1386bbd2b8 Fix crash in elf parser (rbinfile != rbin != rbinobj) 2014-08-19 11:37:17 +02:00
jvoisin
9b99c0135d Even more coverifix 2014-08-18 15:03:02 +02:00
pancake
4b7e3cdd3f Fix CID 1231791 2014-08-17 20:22:30 +02:00
pancake
a0570b4144 More fixes related to paddr/vaddr on PE/ELF/XBE 2014-08-15 12:47:05 +02:00
pancake
a6ad71eccb Implement '/B' to search for known RBin headers 2014-08-11 03:48:51 +02:00
pancake
9a55e866b0 Fix rabin2 -Z . Implement it for DEX too. 2014-08-07 01:00:04 +02:00
pancake
5f3dda2bc2 Optimize loading big binaries, mostly for PE ~20x faster 2014-08-05 01:42:22 +02:00
jvoisin
f7b05fe65d Coverifix rampage! 2014-08-04 01:21:38 +02:00
jvoisin
d026752e4e Add a check to plugin loading, thanks davispuh 2014-08-03 17:30:21 +02:00
pancake
314ab38a78 Fix all latest coverity issues 2014-07-21 17:51:20 +02:00
pancake
e94817a78b Fix PE bin strings offsets and types 2014-07-17 21:56:35 +02:00
pancake
cf64a5dd75 Fix #1117 - Bring back rabin2 -c 2014-07-17 09:40:35 +02:00
pancake
5ce3dd71ab Autodetect ARM thumb symbols and expand analysis. Tested on ELF/MACH0 2014-07-17 03:34:16 +02:00
pancake
178464ea36 Apply LemonBoy's patch to fix string offset in va 2014-07-14 00:06:00 +02:00
LemonBoy
10dc0c6ef4 Make the PE header return vaddrs relative to the image address 2014-07-11 23:32:44 +02:00
LemonBoy
e8dd114774 Re-enable the hack that makes the world tick, one day we'll get rid of that 2014-07-11 23:32:44 +02:00
LemonBoy
0acf0b1dd2 Various fixes to stop the vaddr translation madness 2014-07-11 23:32:44 +02:00
LemonBoy
fa75d37e7f Fix a tiny memory leak (hah) 2014-07-09 17:16:57 +02:00
jvoisin
b0375a3904 strchr takes the lowest 8 bits of that only so 0x10a would appear as 0x0a making it segfault when doing the array access
Kudos to TheLemonMan
2014-07-07 16:03:51 +02:00
LemonBoy
9208946109 Add support for UTF-8 and better WChar strings in RBin
- Better string recognition.
- Better wchar string detection
- UTF-8 helpers. Better string detection.
- Break on invalid sequences
- Fix the vaddr translation. Misc fixes
2014-06-30 16:39:24 +02:00
Jonathan Neuschäfer
9d8dbbd7e8 r_bin_reload: initialize len_bytes, avoid unpredictable allocation
The problem here is that r_io_desc_read checks out_sz, the argument
&len_bytes is passed as, and uses *out_sz as the number of bytes to
allocate unless its UT64_MAX.  So, instead of passing an uninitialized
value, initialized len_bytes to UT64_MAX.
2014-06-21 01:39:33 +02:00
Jonathan Neuschäfer
4c612db79b a few cleanups in bin and lang
* libr/bin/bin.c: remove duplicate condition (xtr && xtr)
* libr/bin/p/bin_elf.c!libs: use r_list_newf
* libr/lang/p/Makefile: add empty "clean" target to silence make warning
2014-06-14 02:14:08 +02:00
pancake
3e5eb05eda Fix PE exports parsing (adapted inisider patch) and some code cleanup 2014-06-13 16:00:39 +02:00