Fix #3960 - crash in pD -

This commit is contained in:
pancake 2016-01-15 03:16:06 +01:00
parent 66225b9ee1
commit c831afedcc

View File

@ -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);