]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Emphasize the need to continue decompressing gzip members.
authorSebastian Pop <s.pop@samsung.com>
Thu, 13 Dec 2018 15:20:57 +0000 (09:20 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 13 Dec 2018 15:25:29 +0000 (16:25 +0100)
Also in zlib-ng.h.

zlib-ng.h

index ce47d56f515b50527180b21f1ae80bd8b0ea1351..ebd453df253784423a5023a7ca16b6f607d55fe3 100644 (file)
--- a/zlib-ng.h
+++ b/zlib-ng.h
@@ -835,9 +835,11 @@ ZEXTERN int ZEXPORT zng_inflateInit2(zng_stream *strm, int  windowBits);
    detection, or add 16 to decode only the gzip format (the zlib format will
    return a Z_DATA_ERROR).  If a gzip stream is being decoded, strm->adler is a
    CRC-32 instead of an Adler-32.  Unlike the gunzip utility and gzread() (see
-   below), inflate() will not automatically decode concatenated gzip streams.
-   inflate() will return Z_STREAM_END at the end of the gzip stream.  The state
-   would need to be reset to continue decoding a subsequent gzip stream.
+   below), inflate() will *not* automatically decode concatenated gzip members.
+   inflate() will return Z_STREAM_END at the end of the gzip member.  The state
+   would need to be reset to continue decoding a subsequent gzip member.  This
+   *must* be done if there is more data after a gzip member, in order for the
+   decompression to be compliant with the gzip standard (RFC 1952).
 
      inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
    memory, Z_VERSION_ERROR if the zlib library version is incompatible with the