Commit Graph

28800 Commits

Author SHA1 Message Date
pancake
0239a265cd Fix warnings spotted by last gcc in cmd_anal.c 2022-08-14 21:07:19 +02:00
pancake
0b9e86e989 Fix issues found by last gcc in cmd_anal.c 2022-08-14 21:06:15 +02:00
pancake
16c30b61c1 Use : instead of =! in all the io plugin help messages ##shell 2022-08-14 20:02:16 +02:00
pancake
c15315e0e3 Fix debugger build for SerenityOS 2022-08-14 20:00:18 +02:00
pancake
620c3fa3dd Fix (null) license on r2 -L 2022-08-14 19:19:31 +02:00
pancake
93a1a1a70b Fix io.self build on serenityos 2022-08-14 19:13:57 +02:00
pancake
1c2f43dcb9 Let a->cur be null and honor host endian by default 2022-08-14 19:00:33 +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
70af275629 Fix UAF, probably re-introducing a memleak 2022-08-12 15:36:06 +02:00
pancake
cb3ccdd9ab
Handle RABIN2_MACHO_SKIPFIXUPS env var in the macho parser ##bin 2022-08-11 02:20:20 +02:00
Denis Ovsienko
2c0951d44c Add a few tests for cBPF conditional jumps. ##tests
This should cover the recent bugfix for unsigned jump offsets.
2022-08-10 09:23:39 +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
Seunghwan Chun
c67c47ed73 Fix duplicate aarch64 syscalls ##analysis 2022-08-09 20:40:45 +02:00
Dennis Goodlett
6bc75331da
Add wasm globals to symbols ##bin 2022-08-09 09:32:39 +02:00
Dennis Goodlett
ff475c5b9b Remove duplicate wasm test 2022-08-09 09:31:41 +02:00
Sylvain Pelissier
5abc76e288
Add SM4 block cipher ##crypto 2022-08-08 19:23:33 +02:00
Paul B Mahol
2853c85fc2 Fix 'num' display with gentoo theme on 256 term ##cons 2022-08-08 19:23:09 +02:00
Paul B Mahol
6f7840a8ec Add to all themes 'ecd' at start ##cons
Ensures defined behaviour when switching themes,
otherwise theme would take colors for missinge entries
from previous/next theme.
Most evident in VE mode when switching between themes.
2022-08-08 19:23:09 +02:00
Paul B Mahol
b8605f9a44 Remove duplicate entry for basic theme ##cons 2022-08-08 19:23:09 +02:00
Paul B Mahol
d703818be6 Fix background color for dark theme ##cons 2022-08-08 19:23:09 +02:00
Paul B Mahol
6b28daadb2 Simplify ansi color mapping ##cons 2022-08-08 19:23:09 +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
Paul B Mahol
b4d929f2c4 Check for RGraph in r_graph_free() ##util 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
474c258c29 Fix unnecessary large allocation on fuzzed machos 2022-08-07 15:50:57 +02:00
pancake
4f1cbdc6fc Fix null deref on non-capstone builds ##crash 2022-08-07 13:48:11 +02:00
Paul B Mahol
ac4ef739a1 Check list allocation return value ##anal 2022-08-07 12:08:20 +02:00
Paul B Mahol
6d3e0346b7 Fix leak of RAnalBlock in false return code path ##anal
Block should be unreferenced after it have been referenced
above while loop.

Fixes possible leaks with '-e bin.cache=true'.
2022-08-07 12:08:20 +02:00
Paul B Mahol
36347f19f2 Fix broken 'rafind2 -e' test 2022-08-07 12:08:20 +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
10eb24198a Fix several issues in r_syscmd_join() ##util
Fix crash if reallocation happens when using r_str_append().
Fix leaks in function.
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
a9956f7192 Fix leak of char* in r_table_visual_list() ##util 2022-08-07 12:07:34 +02:00
Paul B Mahol
833b8d92a0 Fix integer overflow in match_c_lui() ##asm 2022-08-07 00:30:05 +02:00
Paul B Mahol
c79b5f76cf Fix integer overflow in R_ANAL_JAVA_COND_OP 2022-08-07 00:30:05 +02:00
Paul B Mahol
ef0b0ddc7f Fix integer overflow in R_BIN_NM_BLOCKS 2022-08-07 00:30:05 +02:00