mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 16:59:08 +00:00
Fix corner case when loading huge files with strings
This commit is contained in:
parent
fb19a8cdd4
commit
9e0d7b777b
@ -20,7 +20,7 @@ static void get_strings_range(RBinArch *arch, RList *list, int min, ut64 from, u
|
||||
|
||||
if (arch && arch->buf && to > arch->buf->length)
|
||||
to = arch->buf->length;
|
||||
if (to > 0xf00000) {
|
||||
if (to<1 || to > 0xf00000) {
|
||||
eprintf ("WARNING: bin_strings buffer is too big at 0x%08"PFMT64x"\n", from);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user