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" case 'o': // "pxo"
r_print_hexdump (core->print, core->offset, core->block, len, 8, 1); r_print_hexdump (core->print, core->offset, core->block, len, 8, 1);
break; break;
case 'd': case 'd': // "pxd"
r_print_hexdump (core->print, core->offset, r_print_hexdump (core->print, core->offset,
core->block, len, 10, 4); core->block, len, 10, 4);
break; break;
case 'w': case 'w': // "pxw
r_print_hexdump (core->print, core->offset, core->block, len, 32, 4); r_print_hexdump (core->print, core->offset, core->block, len, 32, 4);
break; break;
case 'W': case 'W': // "pxW"
len = len - (len%4);
for (i=0; i<len; i+=4) { for (i=0; i<len; i+=4) {
const char *a, *b; const char *a, *b;
char *fn; char *fn;