Commit Graph

3518 Commits

Author SHA1 Message Date
GustavoLCR
1abd72f8af
PDB: Fix NULL deref with unsupported leaf type (#17996) ##bin 2020-12-06 18:12:29 +01:00
GustavoLCR
32cb22b9a6
Fixes for MSVC demangling (#17994)
* MSVC demangling: Add a space between cc and func ptr
* MSVC demangling: Fix extremely long types demangling
* MSVC demangling: Fix member function pointer demangling
* Add test
2020-12-04 15:20:46 +08:00
GustavoLCR
6c37b12d63
Fix #17979 - Fix ASAN timeout for PE (#17993)
r_buf_read() is extremely slow
2020-12-04 15:20:09 +08:00
pancake
b2f210a0cc
Fix asserts in r2 -a snes foo.sfc ##bin (#17990)
Co-authored-by: pancake <pancake@nopcode.org>
2020-12-04 12:16:09 +08:00
eagleoflqj
facdda17e3 cp-demangle - fix tcc build ##build 2020-11-27 12:36:59 +08:00
GustavoLCR
ee46646df8
Set realname for PDB flags (#17967) 2020-11-27 12:22:58 +08:00
Liumeo
63249d6a84
Fix s390x mdmp symbols count ##refactor (#17977) 2020-11-27 12:22:03 +08:00
Liumeo
536e420f58
Fix s390x Warning: File is not PE (#17938)
* fix s390x Warning: File is not PE

* use r_buf_read

* Fix a typo

Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-11-23 18:24:19 +01:00
Paul I
3ae296254b
Fix memleak in fcn_recurse(), r_bin_info_free(), r_core_anal_cc_init(), update_asmbits_options() (#17876) 2020-11-19 15:55:31 +08:00
Liumeo
da50d751b7
Fix System Z ELF asm.arch & bits (#17936) 2020-11-19 11:43:14 +08:00
Anton Kochkov
6b6ec5dc17 Fix fuzzing crash in LE 2020-11-17 13:04:57 +08:00
Anton Kochkov
5da1b3b076 Fix some warnings 2020-11-16 18:56:21 +08:00
Anton Kochkov
14f82ee301 Fix formatting warnings for sdb_fmt() ##refactor 2020-11-12 15:14:42 +08:00
Anton Kochkov
aaccc09828 Variadic argument fixes 2020-11-10 11:11:45 +08:00
Khairul Azhar Kasmiran
91aebb6490 Add r_bin_coff_obj::scn_va guards 2020-11-04 10:10:13 +08:00
Paul I
fab33cd939
Fix #17878 (COFF fuzz segfault) (#17881) 2020-11-02 18:44:32 +08:00
Liumeo
3aca0298a8
Fix macos warning: overrides prior initialization (#17882) 2020-11-01 01:13:52 +01:00
Paul I
92501b0082
COFF: add ARMNT and ARM64 support ##bin (#17800) 2020-10-29 13:33:43 +08:00
pancake
e9916a1914
Fix warnings in RBin.{dmp,elf} (#17865) 2020-10-28 10:21:07 +01:00
Liumeo
b0ee85edbf
Remove unnecessary macro ##refactor (#17821) 2020-10-28 11:24:47 +08:00
x1nixmzeng
a25af4d367
Fix XBE format symbol name lookup ##bin (#17841) 2020-10-26 13:55:39 +08:00
pancake
3fffa6f7e1
Fix #17804 - This has-main code in swift-sd.c is already in libdemangle (#17812)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-22 16:26:32 +08:00
Anton Kochkov
21907a565e Fix format string warnings 2020-10-19 11:50:06 +02:00
GustavoLCR
79de725396
Fixes for MSVC demangling (#17783)
* Support demangling nested names
* Support demangling RTTI operator codes
* Fix parsing function pointers with access modifier
2020-10-16 12:52:01 +08:00
Riccardo Schirone
1e58692071
Fix incorrect uses of printf-like functions ##refactor (#17648) 2020-10-13 16:26:15 +02:00
Riccardo Schirone
741d22ed61
Use -Werror when building in CI (#17781) 2020-10-13 12:42:57 +02:00
pancake
34285a1ed4
Set v850 disassembler when opening v800 ELF files ##bin (#17778) 2020-10-13 02:30:11 +02:00
pancake
c521a6290c
Move spc700 asm,bin plugins to radare2-extras ##asm (#17762)
Co-authored-by: pancake <pancake@nopcode.org>
2020-10-10 12:11:29 +08:00
GustavoLCR
02edb130d7 Fixes for MSVC name demangling
* Fix back-reference to templated operator functions
* Fix back-reference to templated names
* Support demangling rvalue references
* Support demangling 'std::nullptr_t' type
* Support demangling function types inside templates
* Support demangling array types inside templates
* Support demangling empty templates
* Support demangling compiler generated statics
* Support demangling thunk functions
2020-10-06 10:54:29 +08:00
phakeobj
1aba692eb6
Treat error as a format string instead of a string literal (#17731) 2020-09-29 12:36:59 +08:00
pancake
aa7de006e6 Fix TinyCC build ##build 2020-09-27 13:33:26 +08:00
phakeobj
89e1618e3c
Fix #17353 - Remove duplicated implementation of uleb128 in mach0 ##bin (#17489) 2020-09-24 09:47:23 +02:00
Alexis Ehret
ec6a52e8a9
Fix 3 lgtm warnings (#17465) 2020-09-24 09:37:41 +02:00
GustavoLCR
22468fdc0a
Support demangling MSVC managed pointer types ##bin (#17694)
* Demangle __clrcall calling convention
* Transform a giant macro to a function for sanity sake
* Add tests
2020-09-23 16:40:10 +02:00
junchao-loongson
ca9b6ac1a0
Set asm.cpu for mips.gnu derived from the ISA defined in the ELF ##bin (#17555) 2020-09-21 16:58:07 +02:00
pancake
3e5677bd7c Refactor and prefix with R_BIN_ELF_ defines in .h ##bin 2020-09-17 12:38:25 +02:00
pancake
ba9960cffd Dynamic ELF libs can also have relocs ##bin
* Make 32 and 64 bit reloc writes more generic
2020-09-17 12:38:25 +02:00
pancake
63031cc3e9 Add basic support for arm and arm64 ELF relocs ##bin 2020-09-17 12:38:25 +02:00
pancake
b261f2ed5d Define as words more sections in ELF ##bin 2020-09-17 12:38:25 +02:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
GustavoLCR
5c96166e2b
Fix MSVC template demangling with ref to mangled symbol (#17601) ##bin
* Fix not adding the template name as an abbreviation
* Add test
2020-09-13 22:38:51 +02:00
Francesco Tamagni
67e79f0bb3 Fix ObjC ivar parsing ##bin 2020-09-13 22:36:38 +02:00
Francesco Tamagni
3c4fc3fc26 Support ObjC small method lists ##bin 2020-09-13 22:36:38 +02:00
Francesco Tamagni
90f4ba69b5 Support iOS 14.x dyld shared cache ##bin 2020-09-13 22:36:38 +02:00
Francesco Tamagni
e74b004239 Add support for new macOS kernelcache ##bin 2020-09-13 22:36:38 +02:00
Aswin C
871857df1a
Use PJ in iAj ##json (#17636) 2020-09-13 09:58:17 +02:00
Riccardo Schirone
ec21daa6c2
Fix crash when running iA while head_flag is not defined (#17630) 2020-09-11 11:41:09 +02:00
Riccardo Schirone
272265a4c3
Fix ELF R_X86_64_PLT32 relocation entries patching (#17587) ##bin
* Correctly get the address of the PLT entry for a symbol. If the symbol
was not yet added to the .got.r2 section, then take the first available
address (vaddr), otherwise retrieve it from the hashtable.

* Avoid showing wrong relocations when relocations are already replaced
2020-09-08 09:52:35 +02:00
GustavoLCR
70ab5c8e88
Fix null deref in fuzzed xtr after 080bf4918c (#17602) 2020-09-06 14:28:09 +02:00
GustavoLCR
080bf4918c
Fix #17590 - Fix invalid deref in print_types_format (#17592)
Make sure streams are in their proper index for `r_list_get_n` by appending a NULL item when necessary
2020-09-05 19:04:41 +02:00