From 6b8233bfe00e79134cb1b84fc49d4f750a797f79 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:24:43 -0700 Subject: zlib 1.2.2.3 --- examples/zlib_how.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/zlib_how.html') diff --git a/examples/zlib_how.html b/examples/zlib_how.html index b2bda6b6..40998dbf 100644 --- a/examples/zlib_how.html +++ b/examples/zlib_how.html @@ -420,10 +420,11 @@ The output of inflate() is handled identically to that of deflate() } The inner do-loop ends when inflate() has no more output as indicated -by not filling the output buffer, just as for deflate(). +by not filling the output buffer, just as for deflate(). In this case, we cannot +assert that strm.avail_in will be zero, since the deflate stream may end before the file +does.

         } while (strm.avail_out == 0);
-        assert(strm.avail_in == 0);     /* all input will be used */
 
The outer do-loop ends when inflate() reports that it has reached the end of the input zlib stream, has completed the decompression and integrity -- cgit v1.2.3-55-g6feb