diff --git a/libr/bin/bin.c b/libr/bin/bin.c index b303a1f2f0..dabf588623 100644 --- a/libr/bin/bin.c +++ b/libr/bin/bin.c @@ -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; }