]> git.lizzy.rs Git - zlib.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)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 16 Apr 2017 15:35:33 +0000 (08:35 -0700)
commit44e8ac810d7d50381429a15cdc6e48816beafd2b
tree751b95f60660f77e237a93ff76e2299facc77bbf
parent89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6
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