]> git.lizzy.rs Git - zlib.git/commit
Change gzread() and related to ignore junk after gzip streams.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 24 Sep 2011 17:26:07 +0000 (10:26 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 24 Sep 2011 17:26:07 +0000 (10:26 -0700)
commita9ae24b6538a8c75b13826ef8a2547344fd2e08c
tree9f726be0a8f64c2a896d41683551d89b0e9a6611
parent8824da8f01c63b0e77f96fe57faf762070bd0576
Change gzread() and related to ignore junk after gzip streams.

Previously the new gz* functions (introduced in 1.2.4) would read and
return raw data after the last gzip stream.  This is inconsistent with
the behavior of gzip and the previous versions of zlib.  Now when one
or more gzip streams have been decoded from the file, which is then
followed by data that is not a gzip stream (as detemined by not finding
the magic header), then that subsequent trailing garbage is ignored,
and no error is returned.
gzread.c
zlib.h