From c8afc0650a926f06377de613dfe7b99f6a6427b8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 4 Feb 2011 10:49:12 +0000 Subject: Tweak the compression bomb detection. --- fitz/stm_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz') 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"); -- cgit v1.2.3