[Midnightbsd-cvs] [MidnightBSD/src] 8d14f8: Handle case where inflateSync used when header nev...

Lucas Holt noreply at github.com
Mon Sep 13 13:43:33 EDT 2021


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 8d14f80dd3a4665afa5a7b0b75bc839d92350069
      https://github.com/MidnightBSD/src/commit/8d14f80dd3a4665afa5a7b0b75bc839d92350069
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2021-09-13 (Mon, 13 Sep 2021)

  Changed paths:
    M contrib/zlib/inflate.c

  Log Message:
  -----------
  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.

Obtained from: https://github.com/madler/zlib/commit/44e8ac810d7d50381429a15cdc6e48816beafd2b




More information about the Midnightbsd-cvs mailing list