Commit Graph

3635 Commits

Author SHA1 Message Date
pancake
67d43c4865 Fix memleaks in RCons.grep 2021-07-26 12:40:25 +02:00
pancake
352630295e
Polish some asserts here and there (#18927) 2021-07-23 09:36:10 +02:00
pancake
d7ea20fb2e
Fix #18923 - Fix resource exhaustion bug in LE binary (#18926) 2021-07-23 09:29:54 +02:00
pancake
b37c354565 Fully de-assert the codebase. Instead use r_return_if_fail 2021-07-13 01:23:30 +02:00
pancake
90ecd4ea2e Implement ELF relocs for VAX ##bin 2021-06-20 17:13:28 +02:00
pancake
4a2e846943
Dont trust the unaligned rich PEs ##bin 2021-05-31 01:12:52 +02:00
pancake
d2070b7484
Remove empty databases and its references from libr/bin/d/dll (#18762) 2021-05-27 20:43:59 +02:00
pancake
c778d8cf4b Fix more asan issues in charset api and recently introduced memleaks 2021-05-25 11:27:32 +02:00
pancake
3db250f73a
Add initial toy IBM S390 Object File Format parser ##bin (#18747) 2021-05-24 21:17:13 +02:00
pancake
cb8fe1f388
Fix #18724 - Use RCharset in rabin2 -z ##bin (#18743)
* Dont show the offset as its misleading
2021-05-24 18:53:36 +02:00
pancake
d90510f951 Fix more recently introduced memleaks 2021-05-21 11:17:32 +02:00
Murphy
0fbb20a5b3
Remove sdb_fmt references in mach0.c (#18723) 2021-05-20 18:50:22 +02:00
Murphy
7f64b235be
Fix/minor fixes to wad plugin (#18709)
* Remove Debug Message
* Fix wad_header_load to parse header info
* Fix lumplumps type in wad_header_fields parsing
* Verify r_buf_fread_at return value at wad_header_load
2021-05-19 17:43:34 +02:00
pancake
df3f035079 Fix last covs 2021-05-18 20:10:34 +02:00
pancake
374037a4d2 Fix warnings 2021-05-18 19:34:23 +02:00
Murphy
fb141bdb0d
Add WAD file parsing (#18659) ##bin 2021-05-18 18:06:40 +02:00
pancake
049de62730 Fix #18679 - UAF when parsing corrupted pyc files ##bin 2021-05-11 23:54:01 +02:00
pancake
a8b13483af Fix another bound for dex 2021-05-11 23:41:47 +02:00
pancake
f47f58d8f4
Fix last covs (#18674) 2021-05-11 14:49:48 +02:00
pancake
5e16e2d1c9 Fix #18666 - uaf in python bin parser 2021-05-07 21:09:59 +02:00
pancake
a07dedb804 Fix #18667 - division by zero in the macho parser ##bin 2021-05-07 18:44:49 +02:00
pancake
162e223028
Rename sysz to s390 and add the s390.gnu plugin from binutils 2.36 ##asm 2021-05-04 04:01:22 +02:00
pancake
f73003656b Fix null deref in r_bin_addr2line2 2021-04-29 12:01:35 +02:00
pancake
07be57f33a
Fix loading symbols from nested ELF ##bin (#18615) 2021-04-21 20:25:04 +02:00
pancake
be248ddc1b
Fix some Leaks in Dex (#18613)
Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2021-04-21 18:52:47 +02:00
pancake
580ebc8edc
Fix oobreads in the PE SEH parser (#18611) 2021-04-21 15:21:55 +02:00
pancake
bfcc61b48f
Fix OOB read crash in dex parser (#18609) 2021-04-21 13:24:50 +02:00
Francesco Tamagni
52b4598d11 Honor value_add when estimating dyldcache slide ##bin
macOS caches have `value_add` set to a non-zero value, and
`estimate_slide` wasn't taking it into account resultin in a wrong side
estimation.
2021-04-17 20:14:36 +02:00
pancake
17a160cc77 Parse the symbols from the ELF .gnu_debugdata section ##bin 2021-04-11 05:32:41 +02:00
meme
0745702234
Support x86_64 and macOS dyld caches (#18570) ##bin
Co-authored-by: meme <meme@users.noreply.github.com>
2021-04-11 04:09:20 +02:00
pancake
d6e91498f2
Fix wrong demangling of tiff swab16 bit data ##bin (#18566) 2021-04-11 03:30:18 +02:00
pancake
3f7d6b1760
Use r_bin_import_free() as <free> cb for imports list (#893) ##bin (#18563) 2021-04-11 01:49:00 +02:00
pancake
ab295f224a
Improve python disassembler and binary parser ##bin (#18561)
* Fix segfault when loading pyc9 file
* Lowercase all instructions (user can later decide asm.ucase)
* Use 1 space, not 20, between instruction and arg
* Detect pyc3.9 bins, not loading properly yet
2021-04-11 01:38:49 +02:00
pancake
f0cafe9198
Fix large loading times when parsing encrypted/fuzzed macho ##bin (#18547)
* Strip flags from entsize when checking bounds

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Francesco Tamagni <mrmacete@protonmail.ch>
2021-04-08 01:55:48 +02:00
pancake
fcf3ad1e1d
Do not consider ELFs with .gnu_debugdata section as stripped ##bin (#18548)
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-08 01:55:21 +02:00
Francesco Tamagni
f47804f3e9
Fix coverity issue in Mach-O format (#18546) 2021-04-07 12:28:56 +02:00
pancake
e5248e97ed
Fix #18511 - Add dwarf info in pdj ##disasm 2021-04-04 19:13:31 +02:00
pancake
4c8aa2bf2e
Fix last covs I got by mail (#18531) 2021-04-03 03:50:08 +02:00
Francesco Tamagni
3b9f63e506 Fix NULL dereference 2021-04-01 21:48:39 +02:00
Francesco Tamagni
7e2941d017 Fix Mach-O related coverity issues ##bin 2021-04-01 21:48:39 +02:00
Francesco Tamagni
c4bbe4996c
Fix coverity issues in xnu kernelcache ##bin (#18514) 2021-03-30 16:00:59 +02:00
pancake
a7c08c15ce Don't scream out WARNINGs, capitalizing it is enough 2021-03-19 11:02:54 +01:00
pancake
a980a1a0b0
Fix asan crash in DEX with big negative type sections (#18492) 2021-03-18 03:26:08 +01:00
pancake
93b4f34b84
Fix ASAN crash when allocating more relocs than the filesize ##bin (#18482)
* Reproducer: r2 elf7
2021-03-16 12:49:48 +01:00
pancake
08fe19ceb7 Fix asan crash found in r2_hoobr_dex_loadcode ##bin 2021-03-16 12:49:12 +01:00
pancake
e3b5991774 Fix oobread bug in r_str_(ndup|nlen) APIs spotted by ASAN in SMD parser ##bin 2021-03-15 12:26:01 +01:00
Paul I
1e8a80c553 Set free method for relocs on mdmp and coff 2021-03-15 06:09:21 +01:00
pancake
d15d321366 Remove unused variable 2021-03-15 02:24:16 +01:00
pancake
894bc43ea9 Use more r_str_ncpy and improve it to not alloc beyond nullbyte ##api 2021-03-15 02:24:16 +01:00
pancake
c5e45f935d Fix minor memleak on fail for macho 2021-03-15 02:24:16 +01:00