mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 15:54:59 +00:00
Fix #3960 - crash in pD -
This commit is contained in:
parent
66225b9ee1
commit
c831afedcc
@ -2408,6 +2408,8 @@ static int cmd_print(void *data, const char *input) {
|
||||
if (l<0) l = -l;
|
||||
if (block) {
|
||||
if (*input == 'D'){ //pD
|
||||
free (block);
|
||||
block = malloc (l);
|
||||
r_core_read_at (core, addr-l, block, l); //core->blocksize);
|
||||
core->num->value = r_core_print_disasm (core->print,
|
||||
core, addr-l, block, l, l, 0, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user