28560 Commits

Author SHA1 Message Date
pancake
dfb3504126 Initial implementation of the xattr io plugin ##io 2022-08-17 23:18:11 +02:00
pancake
a665f7fef3 Fix oob write in dyldcache ##crash
* When n_slide_infos is too high, the sum would overflow and few entries will be allocated
* Inpired in 556ca2f9ee
2022-08-17 22:40:28 +02:00
pancake
43442e8e1d Support powerpc coffs ##bin 2022-08-17 21:49:34 +02:00
pancake
d6e42b8728
Update zlib from 1.2.9 to 1.2.12
* Fixes a bunch of bugs spotted by coverity as well as other CVEs reported in the last update
2022-08-16 18:00:40 +02:00
pancake
5a16cbc3b1 Fix last covs 2022-08-16 17:50:00 +02:00
Dennis Goodlett
8b796b216d
Refactor esil new in cmd_anal ##anal
* Replace cmd_anal repeated code refactor
* Use new static esil_setup_from_core in cmd_anal
* Combine functions to r_esil_new_setup

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2022-08-16 09:17:52 +02:00
pancake
aa990230cc Lint for col0 eprintfs 2022-08-15 18:28:07 +02:00
pancake
8c66266e99 Lint for trailing spaces 2022-08-15 18:21:18 +02:00
pancake
63047fc2ff
Use R_LOG in util/json_parser.c 2022-08-14 21:25:18 +02:00
pancake
519b2487bb
Initial blind support for io.self for serenity ##debug 2022-08-14 21:07:51 +02:00
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