Commit Graph

22055 Commits

Author SHA1 Message Date
pancake
73f220f22d Update doc/license for more clarifications ##build
* Orphaned shlr/arm/omap3430 script moved to extras
* Unified json format for r2 -Lj
* Update QNX io plugin to GPL until clarified with the author
2021-03-17 12:56:38 +01:00
pancake
50580d3e87 Move RCorePlugin from r_cmd.h to r_core.h 2021-03-17 11:50:09 +01:00
pancake
e80a66aeb7 Add json version output to r2 -vj ##json 2021-03-17 11:47:05 +01:00
pancake
15d47f9841 rasm2 -L now shows an array of objects ##json 2021-03-17 11:26:47 +01:00
pancake
d3f5bc2767 rasm2 -Lj works the same way as -jL ##shell 2021-03-17 11:19:31 +01:00
murphy
013d9123a3 Fix warnings and minor fixes due to code review 2021-03-17 11:16:51 +01:00
murphy
f0dfb0f3b3 Fix 1447031 Resource leak 2021-03-17 11:16:51 +01:00
murphy
d7f9449aaf Fix 1447034 Resource leak 2021-03-17 11:16:51 +01:00
murphy
222137d343 Fix 1447092 Structurally dead code 2021-03-17 11:16:51 +01:00
murphy
0dd1560a55 Fix 1447093 Resource leak 2021-03-17 11:16:51 +01:00
murphy
cc68482a43 Fix 1448201 Read from pointer after free 2021-03-17 11:16:51 +01:00
murphy
882b2bb8dc Fix 1448202 Out-of-bounds access 2021-03-17 11:16:51 +01:00
condret
3f96c6fda6 Implement r_rbtree_cont_node_prev (siol eternal) ##util 2021-03-16 17:42:38 +01:00
condret
a3e3b5af7c Implement r_rbtree_cont_last ##util 2021-03-16 17:42:38 +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
81be6c177c
Fix long time analyzing oob objc data ##bin (#18479)
* Fix long time analyzing oob objc data ##bin

* Reproducer: r2 -A hang_02.dms
2021-03-16 12:49:34 +01:00
pancake
08fe19ceb7 Fix asan crash found in r2_hoobr_dex_loadcode ##bin 2021-03-16 12:49:12 +01:00
condret
116997df03 Close #18257 / Remove RIODescData ##io 2021-03-16 01:22:16 +01:00
condret
827a8ac783 Enable io-plugins to set bin.baddr on launch ##io 2021-03-15 21:08:33 +01:00
pancake
639045efc5 Dont run debugger tests in ASAN mode and fix crash in snap.c 2021-03-15 12:26:09 +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
Khairul Azhar Kasmiran
d248a2230a dcpu16/dis.c: Use snprintf/strncpy instead of sprintf/strcpy 2021-03-15 06:09:50 +01:00
Khairul Azhar Kasmiran
70bcbf9704 Show overlapped flags if requested and show them differently (#706) ##disasm
* Show overlapped flags if requested
* Don't print flag if going to be realigned on bb sooner or equal
* Show overlapped flags differently
* Color offset differently in overlapped flag comment
2021-03-15 06:09:39 +01:00
Paul I
1e8a80c553 Set free method for relocs on mdmp and coff 2021-03-15 06:09:21 +01:00
pancake
8da5a75def Fix asan oob in charset api 2021-03-15 06:07:56 +01:00
Khairul Azhar Kasmiran
12bdda5b5b Fix oobread ppc plugin ##anal 2021-03-15 05:54:25 +01:00
pancake
2675954477 Quickfix for regression 2021-03-15 05:33:31 +01:00
Paul I
9f91932eb1 Fix memleaks in agraph by keeping a separated list of dummy nodes ##visual 2021-03-15 04:21:08 +01:00
pancake
45caf760a6 Revert "dmi commands handle symbols, exports, main, entries too ##debug"
This reverts commit e82f3d7fcb.
2021-03-15 04:00:00 +01:00
Khairul Azhar Kasmiran
d1907f84d0 handleMidFlags: Reset ds->midflags on entry ##anal 2021-03-15 03:10:46 +01:00
Khairul Azhar Kasmiran
879e399f0d asm.flags.middle: Don't split bb instruction ##anal 2021-03-15 03:10:46 +01:00
pancake
4ef86f0c2b Fix null deref in r_str_ndup() 2021-03-15 02:24:16 +01:00
pancake
d15d321366 Remove unused variable 2021-03-15 02:24:16 +01:00
Khairul Azhar Kasmiran
1cec1e7419 Null deref, asm.tabs ovf and capstone3 fixes 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
Florian M"arkl
b24dfd8e63 Fix UAF in rz_bin_reset_strings() ##bin 2021-03-15 02:24:16 +01:00
pancake
14e4e84ee3 Fix oobread in dcu 2021-03-15 02:24:16 +01:00
Khairul Azhar Kasmiran
ded1bafab3 Fix some uninitialized and minor memleak issues 2021-03-15 02:24:16 +01:00
Paul I
902d12b5ec Free objects allocated by rz_syscall_get() 2021-03-15 02:24:16 +01:00
Khairul Azhar Kasmiran
621f90752b Fix overflow in dcpu16 and uninitialized warning in wasm 2021-03-15 02:24:16 +01:00
Khairul Azhar Kasmiran
637af6323f aae: Realign on fcn start if not in bb ##anal 2021-03-15 02:23:54 +01:00
pancake
7ff2673dd9
Random uninitialized variable uses fixups (#18453) 2021-03-15 02:23:39 +01:00
Basstorm
d1d4deb3c4 Fix duplicate vtable entries after 'aaa' ##anal
Co-authored-by: parallels <parallels@vmdevelop.lan>
2021-03-15 02:09:00 +01:00
pancake
6d47fa4336
af-*: Remove function flags too ##anal (#18466)
Co-authored-by: Khairul Azhar Kasmiran <kazarmy@gmail.com>
2021-03-15 02:02:15 +01:00
pancake
7337abaddf
Add r_vector_flush() ##api (#18465)
Co-authored-by: Florian M"arkl <info@florianmaerkl.de>
2021-03-15 01:57:10 +01:00
pancake
d1038c5301 Fix format string in table and minor type regression 2021-03-15 01:48:59 +01:00
wargio
8b1037a9a1 null argument issues 2021-03-15 01:48:59 +01:00
Alexis Ehret
f48729acd5 Random null deref and more size_t fixes 2021-03-15 01:48:59 +01:00
pancake
06adab8389
Add variable autocompletion class in !!! ##shell 2021-03-15 01:46:33 +01:00
pancake
793c0b00a2
Fix memory leak librz/analysis/dwarf_process.c (#18461)
Co-authored-by: Alexis Ehret <08a@riseup.net>
2021-03-15 01:16:37 +01:00
pancake
ef80f24679
Check if Core Plugin implements call before calling (#670) (#18459)
Co-authored-by: Florian Markl <info@florianmaerkl.de>
2021-03-14 23:29:19 +01:00
pancake
285ec16b4e
io/p/io_zip: fix NULL deref when opening unknown zip (#18455)
Co-authored-by: Riccardo Schirone <sirmy15@gmail.com>
2021-03-14 22:45:17 +01:00
pancake
921f4a0bc8
aaef: Add help msg and x86_32 test (#18454)
Co-authored-by: Khairul Azhar Kasmiran <kazarmy@gmail.com>
2021-03-14 22:35:54 +01:00
pancake
e7c29ed232
Boolify cfg.debug (#18452) 2021-03-14 22:22:04 +01:00
pancake
338d4d3915
Fix cX command and minor cleanup ##anal (#18451) 2021-03-14 21:52:52 +01:00
condret
99953e16ea Sync om and omj output ##cmd 2021-03-14 21:30:39 +01:00
condret
1887ae643d Fix comment ##io 2021-03-14 19:52:40 +01:00
pancake
ed6f351634 Fix PSW register bits definition for v850 ##anal 2021-03-14 19:38:14 +01:00
pancake
acf469352c
Add support for jump tables on v850 ##anal (#18447) 2021-03-14 18:59:40 +01:00
pancake
08b3dc0ea9 Honor cfg.debug in asm.section using dmi. ##disasm 2021-03-14 18:54:01 +01:00
pancake
e82f3d7fcb dmi commands handle symbols, exports, main, entries too ##debug 2021-03-14 18:54:01 +01:00
pancake
402be564e1 Implement dmis command as an alias for .dmi* ##debug 2021-03-14 18:54:01 +01:00
pancake
f46683f6be Workaround the dmi issue by using rabin2 in macOS for now ##debug 2021-03-14 18:54:01 +01:00
pancake
0977e6119f
Fix alignment issues in RTable with utf8 fields ##print (#18448) 2021-03-14 18:48:13 +01:00
pancake
80f861a71d
Implement custom bit size cyclic memory layout and wrap flags in ##io (#18417)
* Repeated maps dont have executable permissions
* This is used on s390, ARMv4 (and lower) and some v850
* Added some basic tests
2021-03-14 16:55:57 +01:00
pancake
83aad2f3fd
Fix assert in iSj for invalid size sections ##bin 2021-03-14 16:52:03 +01:00
pancake
01f8773683
Improve asm.meta=false for 16, 32 and 64 words ##disasm (#18446) 2021-03-14 16:49:51 +01:00
condret
1fae2164cb Rename r_io_map_get_for_fd to r_io_map_get_by_fd ##io 2021-03-12 20:52:45 +01:00
condret
4f67157ff5 Rename r_io_map_resolve to r_io_map_get ##io 2021-03-12 17:56:46 +01:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
Sylvain Pelissier
676cb56b4c
Correct MOVD instruction and SSE registers definition (#18437) 2021-03-11 22:01:23 +01:00
mrglm
6fc16a716b
Fix #18284 (json command returning empty string) ##anal ##json (#18439) 2021-03-11 20:22:54 +01:00
pancake
3694865726
r2 -b acts like -e asm.bits, which resulted in anal plug issue (#18438) 2021-03-11 20:07:16 +01:00
pancake
d87b355e7c Fix double frees and oobs found by asan 2021-03-11 15:38:16 +01:00
condret
870db57f62
Fix warning (#18436) 2021-03-11 14:48:12 +01:00
pancake
70839e7ef3
Add plugins=nogrub option for meson ##build 2021-03-11 12:39:47 +01:00
condret
3b2190e827 Fix endless loop in r_rbtree_cont_node_next ##util 2021-03-10 21:21:24 +01:00
condret
95024fddd1 Fix segfaults in rbtree.c (parent backlink) ##util 2021-03-10 21:21:24 +01:00
condret
36f5d0e68a Add r_rb_cont_tree_node_next (SIOL Eternal) ##util 2021-03-10 21:21:24 +01:00
condret
83a87687cf Add backlink to parent in RBNode (SIOL Eternal) ##util 2021-03-10 21:21:24 +01:00
condret
9ed7ec7c16 Add r_rb_cont_tree_find_node (SIOL Eternal) ##util 2021-03-10 21:21:24 +01:00
pancake
51d6006f82
Fix warnings spotted by gcc 10.2.1 (#18434) 2021-03-10 20:45:32 +01:00
pancake
5856257011
Fix more charset overflows (#18432) 2021-03-10 18:00:38 +01:00
pancake
6ed4b00727 Fix heap overflow in cons.grep 2021-03-10 16:58:24 +01:00
pancake
4bfa904653
Add pdd and pdg commands to suggest r2dec and r2ghidra installations (#18430) 2021-03-10 10:12:27 +01:00
Murphy
841ef4689b
Add support to r_str_glob and add tests (#18420) 2021-03-08 23:23:18 +01:00
pancake
9d828c7fae
Fix RAnalFunction.free signature (#18425) 2021-03-08 15:45:30 +01:00
pancake
1599371f75
Implement slurp:// uri handler plugin ##io (#18424)
* Same as oom but without the extra step
2021-03-08 12:08:39 +01:00
pancake
0ef6b0c80c
Remove SDB code from flag/zones (#18423) 2021-03-08 02:19:46 +01:00
Alexandr
15094a5e01
Fix #16254 - grep expression parse improvement ##cons (#18419) 2021-03-06 23:04:37 +01:00
condret
ca8dab9b1c Apply desired lifecycle of esil syscall and interrupt handlers in esil_dummy plugin ##emu ##api 2021-03-04 19:18:19 +01:00
condret
65f0c42131 Add r_anal_esil_{syscall/interrupt}_{get/del} ##esil ##api 2021-03-04 19:18:19 +01:00
condret
f13f523907 Add dummy interrupt and syscall handlers ##emu 2021-03-04 19:18:19 +01:00
pancake
f07bedfacd
Use proper types in some fields in IO to fix some potential issues 2021-03-04 18:32:59 +01:00
pancake
e1ca36f920
Cd1 Cd2, Cd4, Cd8 are aliases for Cd<space>[1248] ##anal 2021-03-04 18:32:14 +01:00
Dennis Goodlett
a414f079de
Fix abort in r_lib_open (#18416) 2021-03-04 18:16:56 +01:00
Lars Wrenger
78141a9119
Fix ordering of fontname and label for dot graphs (#18414)
Previously the label and fontname values were swapped.
Because of this the generated dot graphs only displayed
"Courier" as their label and not the asm code.

Co-authored-by: Lars Wrenger <lwr@hacon.de>
2021-03-04 15:31:52 +01:00
pancake
cacc508fba
Fix #18412 - Add R2_IGNVER variable to load plugins ignoring the version ##core (#18413) 2021-03-03 18:03:58 +01:00
pancake
8bef6818fd Minor leak fix 2021-03-02 12:36:32 +01:00