Commit Graph

3509 Commits

Author SHA1 Message Date
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
HoundThe
eca62ba4db
Fix big endian DWARF parsing ##bin (#17503) 2020-09-02 11:01:16 +08:00
Khairul Azhar Kasmiran
580f1e97bd
Propagate parse_ext_opcode() error (#17559) 2020-09-01 00:45:47 +08:00
HoundThe
0b671bc357
Fix resource leaks in dwarf.c and dwarf_process.c (#17521) 2020-08-28 23:18:49 +08:00
junchao-loongson
087e5652b3
Improve iA command for MIPS/ELF ##bin (#17516) 2020-08-28 11:11:34 +02:00
GustavoLCR
bc8f9fd5a8
Fix #9202 - Make main detection for 32bit PE debug build more generic ##bin (#17524) 2020-08-27 12:13:39 +08:00
HoundThe
5845ec39ca
Add function information from DWARF ##anal ##bin (#17434) 2020-08-19 18:21:20 +08:00
Florian Märkl
68a1db448d
Merge everything time-related in r_time.h (#17445) 2020-08-12 18:54:49 +02:00
HoundThe
36817b1ab5
Fix malformed DWARF crash due invalid .debug_str reference ##bin (#17399)
* Fix malformed DWARF crash due invalid `.debug_str` reference resulting in NULL str
* Removed code duplication
2020-08-06 12:22:22 +08:00
Riccardo Schirone
a5d1747e09
Fix #17379 - Avoid buffer overflow while identifying imports (#17387) 2020-08-03 12:31:42 +08:00