mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-08 06:12:13 +00:00
Fix an ASAN crash
This commit is contained in:
parent
5b4a4b7be0
commit
4fd433d220
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user