]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Handle case where inflateSync used when header never processed.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 16 Apr 2017 15:35:33 +0000 (08:35 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 13 Dec 2018 13:21:20 +0000 (14:21 +0100)
commit3cbd82cffce0d0f9021fc2f3a715a27f3edddd5b
treef5fb2ec92390194cbed67437855bfab55f82b346
parentd3714a7bd0b5440a42d91006fc3cbe773174b368
Handle case where inflateSync used when header never processed.

If zlib and/or gzip header processing was requested, but a header
was never provided and inflateSync was used successfully, then the
inflate state would be inconsistent, trying to compute a check
value but with no flags set. This commit sets the inflate mode to
raw in this case, since there is no other assumption that can be
made if a header was requested but never seen.
inflate.c