diff options
Diffstat (limited to 'fitz/stm_read.c')
-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 e5ead914..10626e5d 100644 --- a/fitz/stm_read.c +++ b/fitz/stm_read.c @@ -110,7 +110,7 @@ fz_readall(fz_buffer **bufp, fz_stream *stm, int initial) if (buf->len == buf->cap) fz_growbuffer(buf); - if (buf->len > initial * 200) + if (buf->len / 200 > initial) { fz_dropbuffer(buf); return fz_throw("compression bomb detected"); |