[gs-commits] mupdf/master - 0_6-251-gdd8ea63 - Check the update number of encoded bytes remaining after flate decoding.

Tor Andersson tor at ghostscript.com
Tue Aug 3 12:09:48 UTC 2010


commit dd8ea631abb8b586249816892d0b0f0884fc6311
Author: Sebastian Rasmussen <sebras at hotmail.com>
Date:   Mon Aug 2 00:26:07 2010 +0000

    Check the update number of encoded bytes remaining after flate decoding.
    
    Ignore-this: cad9655318dcda84b75b8c8abc7160ed
    
    darcs-hash:20100802002607-86a4e-165f6c5c3642f517f1b5820b1599285418e2d2b4.gz

 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fitz/filt_flate.c b/fitz/filt_flate.c
index bb3ac69..87b1c90 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;

--
git/hooks/post-receive


More information about the gs-commits mailing list