Paul B Mahol
d4c2c61df1
Fix leak in pseudo x86 parser
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
Paul B Mahol
a2a29d8a24
Fix memory leak when calling tcc_sym_push()
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
pancake
d2af6a76f8
Update tests using the deprecated anal.noncode
2022-07-31 06:34:16 -04:00
pancake
be93a9c4b0
Implement ~$!! as a tac replacement and clarify the ~$! use ##shell
2022-07-31 01:50:50 +02:00
Paul B Mahol
14df487086
Check if allocation was positive of r_anal_value_new()
2022-07-30 07:22:53 -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
a4b9260efd
Fix double free when shrinking vectors ##crash
...
realloc() call can return NULL for size of 0 and still free()
that memory, there was no check for this so code ends prematurely
and double free can happen later.
2022-07-30 07:21:02 -04:00
Paul B Mahol
4de824fb89
Fix returning imports table ##bin
2022-07-30 07:20:34 -04:00
Dennis Goodlett
daf0c06d81
Add last opcodes to pickle assembler ##anal
2022-07-29 16:06:51 -04:00
Richard Patel
85b69d1e0e
Fix string literal free in bin.dol
2022-07-29 10:28:56 -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
e540f819e0
Fix overreads in r_str_utf8_codepoint()
2022-07-29 07:29: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
Lazula
afa2963f73
anal_pickle coverity fixes ( #20504 )
...
* Add missing % in anal_pickle log format string
* Ensure arg is never NULL in pickle_opasm
2022-07-28 17:15:07 -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
Seunghwan Chun
63004ced8d
Fix arm64's adr and adrp instruction
2022-07-28 15:33:29 -04:00
Paul B Mahol
50ba95eab1
Fix color changing for same block and prc=f ##print
...
The color issue of small numbers have been fixed in another commit.
2022-07-28 15:31:49 -04:00
pancake
801f0665e5
Fix more UB in shift lefts
2022-07-28 09:11:36 -04:00
pancake
45e14370bf
Fix undefined behaviour bugs in the xtensa analyser
2022-07-28 00:34:47 -04:00
mrmacete
bdd76a11dd
Fix oobread in iOS arm64 kernel parsing ##crash
2022-07-28 00:25:27 -04:00
Paul B Mahol
dae6293dab
Fix p=F output ##print
2022-07-27 17:14:50 -04:00
Paul B Mahol
e596a0bf9b
Make PageUp/Down keys less laggy ##visual
2022-07-27 16:08:35 -04:00
Dennis Goodlett
c47c90d2e5
Add pickle assembler ##arch
2022-07-27 16:08:06 -04:00
pancake
d6d14b2a71
Add spacing linting checks for public function signatures
2022-07-27 10:34:24 -04:00
pancake
03f70c6ec8
Fix use-after-free in the macho swizzler ##bin
2022-07-27 10:22:12 -04:00
Paul B Mahol
77291f5d88
Fix small leak of list in cmd_prc_zoom()
2022-07-27 07:30:58 -04:00
Paul B Mahol
6a891ed683
Fix /rx ##search
...
Simplify code a little.
2022-07-27 07:28:33 -04:00
Paul B Mahol
7ff05dab3f
Check for forgotten allocation errors in ELF format
2022-07-26 16:23:39 -04:00
Paul B Mahol
301935dcad
Check malloc return value in parse_symbol_table() for PE
2022-07-26 16:23:39 -04:00
ChoobieDesu
03b1b23256
Missing comma in readme
2022-07-25 16:08:30 -04:00
Lazula
cc70716d96
Add missing break in wtf
switch statement
2022-07-25 16:07:52 -04:00
pancake
12754725dd
Initial work towards onifying r_util ##build
2022-07-25 06:34:09 -04:00
Paul B Mahol
fb9eaa53cf
Fix picking colors for 256 colors terminals ##cons
...
The R_DIM call was using wrong max allowed value.
Do not try to loop over colors reserved for gray.
2022-07-25 06:22:01 -04:00
Paul B Mahol
2195fb5f61
Fix FPE crash in p2 visual mode ##crash
2022-07-24 15:24:32 -04:00
Paul B Mahol
a01e2b4d7c
Check range of number of names in PE export
2022-07-24 15:24:32 -04:00
Paul B Mahol
b446f7ab47
Fix some memory leaks caused by buggy macros for reference counting
2022-07-24 15:24:32 -04:00
Lazula
cd15bdb1e8
Use R_LOG_ERROR for failure to decode b64
2022-07-24 15:23:53 -04:00
Lazula
7b6e462d23
Use encoded b64 length since API doesnt support max decoded length
2022-07-24 15:23:53 -04:00
Lazula
3265524885
Fix wtf base64 alias and add tests
2022-07-24 15:23:53 -04:00
Lazula
4ce57c06a8
Refactor cmd_wt()
2022-07-24 15:23:53 -04:00
Lazula
65ff60cf02
Move wt? and wt\0 into switch
2022-07-24 15:23:53 -04:00
Lazula
4c16c91c05
Start using argv and move wts inside switch
2022-07-24 15:23:53 -04:00
Lazula
5ea889c126
cmd_wt() rename str -> input
2022-07-24 15:23:53 -04:00
Paul B Mahol
58bd12c100
Allow to change entropy bars width with '[]' keys ##print
2022-07-24 15:22:30 -04:00
pancake
f39071a058
Fix Bx regression
2022-07-23 11:39:38 -04:00
Paul B Mahol
6c7c3d6951
Fix p=e output ##print
2022-07-23 10:34:38 -04:00
Paul B Mahol
45b6ddb101
Fix display issues with pss visual mode ##cons
2022-07-23 10:24:18 -04:00