Fix corner case when loading huge files with strings

This commit is contained in:
pancake 2013-04-24 13:09:06 +02:00
parent fb19a8cdd4
commit 9e0d7b777b

View File

@ -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;
}