From 11c3e6e574f74981459a6401b7d8cd4773f67cc4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 7 Nov 2018 16:58:56 +0100 Subject: Make compression bomb detection optional. --- source/cbz/muimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cbz/muimg.c') diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index fb075307..c03c237d 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -150,7 +150,7 @@ img_open_document_with_stream(fz_context *ctx, fz_stream *file) size_t len; unsigned char *data; - doc->buffer = fz_read_all(ctx, file, 1024); + doc->buffer = fz_read_all(ctx, file, 0); len = fz_buffer_storage(ctx, doc->buffer, &data); fmt = FZ_IMAGE_UNKNOWN; -- cgit v1.2.3