diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-08-02 00:26:07 +0000 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-08-02 00:26:07 +0000 |
commit | caf014b964409d96d2a92e84730825de72bbec34 (patch) | |
tree | a4d8ed492ed2767ed9b0374658c610e09c006e6b /fitz | |
parent | ecbeea576bab0488995154b63c8a99d8c07b5362 (diff) | |
download | mupdf-caf014b964409d96d2a92e84730825de72bbec34.tar.xz |
Check the update number of encoded bytes remaining after flate decoding.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/filt_flate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/filt_flate.c b/fitz/filt_flate.c index bb3ac692..87b1c907 100644 --- a/fitz/filt_flate.c +++ b/fitz/filt_flate.c @@ -45,7 +45,7 @@ readflated(fz_stream *stm, unsigned char *outbuf, int outlen) { return outlen - zp->avail_out; } - else if (code == Z_DATA_ERROR && inlen == 0) + else if (code == Z_DATA_ERROR && zp->avail_in == 0) { fz_warn("ignoring zlib error: %s", zp->msg); return outlen - zp->avail_out; |