Commit Graph

12415 Commits

Author SHA1 Message Date
pancake
0b9e86e989 Fix issues found by last gcc in cmd_anal.c 2022-08-14 21:06:15 +02:00
pancake
620c3fa3dd Fix (null) license on r2 -L 2022-08-14 19:19:31 +02:00
Dennis Goodlett
8488630478 Fix R_LOG lint 2022-08-14 12:25:32 +02:00
Dennis Goodlett
cd261aa787 Refactor ar set command to static func ##anal 2022-08-14 12:25:32 +02:00
pancake
278b6b51b7 Fix memleak on -Cj failure 2022-08-12 17:24:09 +02:00
pancake
db7741247e Fix autocompletion for :.<tab> for r2frida ##shell 2022-08-09 20:50:16 +02:00
Paul B Mahol
9854d41cc2 Fix '/gg' output ##anal
Add also tests.
2022-08-09 20:41:05 +02:00
Paul B Mahol
326ba3592b Fix leaks when calling r_flag_all_list() ##core 2022-08-09 20:41:05 +02:00
Paul B Mahol
090bba7945 Fix several bugs when interacting in VE mode ##cons
No need to handle non-truecolor mode separately,
there is conversion internally to lesser formats.
Also conversion was wrong, using lower bits instead
of higher bits.

Disallow setting colors to fully black foreground and
background, this is so user does not shot itself in foot
by having to restart r2 because some items become invisible.

Limit opt to sensible values, prevent bad user experience.
2022-08-08 19:23:09 +02:00
Paul B Mahol
454e8c61ab Fix leak in nextpal() ##cons 2022-08-08 19:23:09 +02:00
Paul B Mahol
1bcc3670a7 Fix leaks in VE mode ##cons 2022-08-08 19:23:09 +02:00
Paul B Mahol
c163b3a715 Fix leak of memory returned by r_str_ansi_crop() ##cons 2022-08-08 19:22:49 +02:00
pancake
c0d3c226f1 Enable emulation in /as, it's fast enough and results are better ##search
* Use x16 on macOS and x8 on Linux
* Add test against glibc
2022-08-07 18:42:10 +02:00
Paul B Mahol
19f8235062 Fix leak in 'aex' command. ##anal 2022-08-07 16:24:55 +02:00
Paul B Mahol
4ac5862a90 Fix compilation warning ##anal
Fix logic in code.
2022-08-07 16:24:55 +02:00
Paul B Mahol
11c2d8de07 Silence compilation warning in show_reg_args() ##anal 2022-08-07 16:24:55 +02:00
Paul B Mahol
d747f49147 Fix leak in r_core_esil_step() ##anal 2022-08-07 16:24:55 +02:00
pancake
ddf483893e Test and benchmark --with-sysmagic in the CI ##search
* Improve output of search.verbose
* Remove conflictive magic signature
2022-08-07 16:24:08 +02:00
pancake
4f1cbdc6fc Fix null deref on non-capstone builds ##crash 2022-08-07 13:48:11 +02:00
Paul B Mahol
75deea0d96 Check that vector length is not 0 ##anal 2022-08-07 12:08:20 +02:00
Paul B Mahol
0f2e7dfdcc Fix leak of list when using asj command ##anal 2022-08-07 12:08:20 +02:00
Paul B Mahol
e5234b920c Fix leaks caused by not calling r_anal_op_fini() ##anal 2022-08-07 12:08:20 +02:00
Paul B Mahol
9b9a7ee892 Fix leak in bin_sections ##bin
No need to call strdup for last r_listinfo_new() parameter.
r_listinfo_new() strdups internally.
2022-08-07 12:07:34 +02:00
Paul B Mahol
7246782899 Fix leak in error path of r_core_anal_search_xrefs() ##core 2022-08-07 00:30:05 +02:00
Paul B Mahol
bca169d07f Fix leak of pointer left behind ##core 2022-08-07 00:30:05 +02:00
erfur
0133e92709
Emit json when radiff2 is run with -Cj ##diff 2022-08-07 00:20:57 +02:00
Paul B Mahol
dc28629707 Fix leak in some yanking cases ##util 2022-08-05 14:26:05 +02:00
Paul B Mahol
802eb32aa2 Fix leaks of allocated memory for duplicate plugins ##tools 2022-08-05 14:26:05 +02:00
Paul B Mahol
6ca1563d21 Move eprintf message to debug log ##util 2022-08-05 14:26:05 +02:00
Paul B Mahol
038287c551 Check if RList* is available before calling r_list_get_n() ##util 2022-08-05 14:26:05 +02:00
pancake
116bb77ffc Fix free(stack) crash in fortunetypes list 2022-08-01 18:48:39 +02:00
Richard Patel
b78855c38d Refactor a few eprintf 'Cannot …' to R_LOG_ERROR 2022-08-01 16:46:46 +02:00
RHL120
a86c2a1aaa
Minor indent fixes in projects.c 2022-08-01 13:40:05 +02:00
Paul B Mahol
4e47807078 Fix r_cons_printf call in calculator ##view 2022-08-01 09:54:18 +02:00
pancake
4f0fd49b1d Fixes riscv w64 build and improve console printing 2022-08-01 05:43:49 +02:00
pancake
8c51861578 Fix consola 2022-08-01 05:37:39 +02:00
pancake
8b44cee545 Add Assembler entry in Tools/ ##panels 2022-08-01 05:32:43 +02:00
pancake
9b1bc3f85f Fix drf for esil in panels and indent the egg 2022-08-01 04:18:42 +02:00
Paul B Mahol
8a11b29927 Add FPU/XMM/YMM panel displays ##view 2022-08-01 04:10:57 +02:00
Richard Patel
dcd740dd53
Refactor a few eprintf to R_LOG_ERROR ##refactor 2022-08-01 00:21:21 +02:00
pancake
5662271054
Be more strict when parsing numbers ##util 2022-07-31 16:53:42 +02:00
pancake
8df818b2de Add the infamous command tac ##shell 2022-07-31 14:41:55 +02:00
Paul B Mahol
02e306efa2 Fix leaks when switching color themes 2022-07-31 14:24:10 +02:00
Paul B Mahol
5cb5f9aab2 Fix leak of anal_arch in r_core_anal_cc_init() 2022-07-31 14:24:10 +02:00
pancake
1cd49a8d1c Add cmd.undo and handles it for w and CC commands ##core
* Improve undo command listing
* The cmd.undo variable when set some commands add entries into the `uc`
* This is wip, needs to have better facilities and support more commands
* Defer cmd.undo=true for r2-5.8.0
2022-07-31 06:34:16 -04:00
Paul B Mahol
2a1872fd1d Fix leak of abandoned buffer in anal_block_cb() 2022-07-30 07:22:36 -04:00
Paul B Mahol
8ffa196193
Fix not calling r_asm_op_fini() when needed (#20506)
The RAsmOp is used on stack when disassembling and after its content is not need it needs to call its _fini to free possible heap memory previously allocated.
2022-07-29 07:30:05 -04:00
Paul B Mahol
8b84123b78 Fix leak by freeing pointer on stack after it is abandoned 2022-07-28 19:05:51 -04:00
pancake
a4c97fb052 Dont show asm.describe on strings ##disasm 2022-07-28 17:13:29 -04:00
Paul B Mahol
bc268f1c46 Fix recently introduced stack buffer overflow ##visual 2022-07-28 15:33:49 -04:00