diff options
author | Sebastian Pop <s.pop@samsung.com> | 2018-12-13 09:20:57 -0600 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2018-12-13 16:25:29 +0100 |
commit | 4ec1ae6af0bd649860e76cef340d7fcbd5f5e552 (patch) | |
tree | 28279fa5d72b40b4e2c4587efa41757e51abe8df /zlib-ng.h | |
parent | 8373961514ede35ef427cb943f2aad2b50fcce82 (diff) |
Emphasize the need to continue decompressing gzip members.
Also in zlib-ng.h.
Diffstat (limited to 'zlib-ng.h')
-rw-r--r-- | zlib-ng.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |