summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fitz/stm_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/stm_read.c b/fitz/stm_read.c
index bc98f3dc..fe34eaa8 100644
--- a/fitz/stm_read.c
+++ b/fitz/stm_read.c
@@ -70,7 +70,7 @@ fz_readall(fz_buffer **bufp, fz_stream *stm, int initial)
if (buf->len == buf->cap)
fz_growbuffer(buf);
- if (buf->len > initial * 100)
+ if (initial < 1024 && buf->len >= 100 * 1024 * 1024)
{
fz_dropbuffer(buf);
return fz_throw("compression bomb detected");