Fix #6846 - crash on r_print_format

This commit is contained in:
alvarofe 2017-02-24 23:57:39 +01:00
parent 0b97b11d38
commit 8d2f8c5495

View File

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