summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2011-02-04 10:49:12 +0000
committerTor Andersson <tor@ghostscript.com>2011-02-04 10:49:12 +0000
commitc8afc0650a926f06377de613dfe7b99f6a6427b8 (patch)
tree2936d3c58fa604884bb064f334af691252ad09f6 /fitz
parent957a3b1dab7116ae6e1718aada95dd3373006aed (diff)
downloadmupdf-c8afc0650a926f06377de613dfe7b99f6a6427b8.tar.xz
Tweak the compression bomb detection.
Diffstat (limited to 'fitz')
-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 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");