Fix an ASAN crash

This commit is contained in:
jvoisin 2015-04-28 20:46:47 +02:00
parent 5b4a4b7be0
commit 4fd433d220

View File

@ -2453,14 +2453,15 @@ static int cmd_print(void *data, const char *input) {
case 'o': // "pxo"
r_print_hexdump (core->print, core->offset, core->block, len, 8, 1);
break;
case 'd':
case 'd': // "pxd"
r_print_hexdump (core->print, core->offset,
core->block, len, 10, 4);
break;
case 'w':
case 'w': // "pxw
r_print_hexdump (core->print, core->offset, core->block, len, 32, 4);
break;
case 'W':
case 'W': // "pxW"
len = len - (len%4);
for (i=0; i<len; i+=4) {
const char *a, *b;
char *fn;