mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 02:06:46 +00:00
Fix #6846 - crash on r_print_format
This commit is contained in:
parent
0b97b11d38
commit
8d2f8c5495
@ -499,6 +499,10 @@ static int cmd_meta_hsdmf(RCore *core, const char *input) {
|
||||
n = 32; //
|
||||
}
|
||||
}
|
||||
//make sure we do not overflow on r_print_format
|
||||
if (n > core->blocksize) {
|
||||
n = core->blocksize;
|
||||
}
|
||||
int r = r_print_format (core->print, addr, core->block,
|
||||
n, p + 1, 0, NULL, NULL);
|
||||
if (r < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user