diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-11-07 16:58:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-11-07 17:00:00 +0100 |
commit | 11c3e6e574f74981459a6401b7d8cd4773f67cc4 (patch) | |
tree | f8a3a4e0b6eb5dcc91428796d09e343ba20e87d3 /source/cbz/muimg.c | |
parent | 9e604ba1b8f05e94c177266cb7bdf3d2a01b529c (diff) | |
download | mupdf-11c3e6e574f74981459a6401b7d8cd4773f67cc4.tar.xz |
Make compression bomb detection optional.
Diffstat (limited to 'source/cbz/muimg.c')
-rw-r--r-- | source/cbz/muimg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |