diff options
-rw-r--r-- | fitz/stm_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/stm_read.c b/fitz/stm_read.c index 4e42ed85..51c9f590 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 (initial < 1024 && buf->len >= 100 * 1024 * 1024) + if (buf->len > initial * 200) { fz_dropbuffer(buf); return fz_throw("compression bomb detected"); |