commit | 44e8ac810d7d50381429a15cdc6e48816beafd2b | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sun Apr 16 08:35:33 2017 -0700 |
committer | Mark Adler <madler@alumni.caltech.edu> | Sun Apr 16 08:35:33 2017 -0700 |
tree | 751b95f60660f77e237a93ff76e2299facc77bbf | |
parent | 89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6 [diff] |
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.