diff options
author | Tor Andersson <tor@ghostscript.com> | 2011-02-04 10:49:12 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2011-02-04 10:49:12 +0000 |
commit | c8afc0650a926f06377de613dfe7b99f6a6427b8 (patch) | |
tree | 2936d3c58fa604884bb064f334af691252ad09f6 /fitz | |
parent | 957a3b1dab7116ae6e1718aada95dd3373006aed (diff) | |
download | mupdf-c8afc0650a926f06377de613dfe7b99f6a6427b8.tar.xz |
Tweak the compression bomb detection.
Diffstat (limited to 'fitz')
-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"); |