]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jk/zlib-inflate-fixes'
authorJunio C Hamano <gitster@pobox.com>
Tue, 15 Apr 2025 20:50:13 +0000 (13:50 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Apr 2025 20:50:14 +0000 (13:50 -0700)
commitc39e5cbaa5e791292e90779a67e0e2fc356e9460
treea3e53fb40d80cba0a6180719980be3234f295013
parent139d70351163d58da9abd98bed221624450f2225
parent1cb2f293f5a594fd5dee8400213bd2f395fbd2bf
Merge branch 'jk/zlib-inflate-fixes'

Fix our use of zlib corner cases.

* jk/zlib-inflate-fixes:
  unpack_loose_rest(): rewrite return handling for clarity
  unpack_loose_rest(): simplify error handling
  unpack_loose_rest(): never clean up zstream
  unpack_loose_rest(): avoid numeric comparison of zlib status
  unpack_loose_header(): avoid numeric comparison of zlib status
  git_inflate(): skip zlib_post_call() sanity check on Z_NEED_DICT
  unpack_loose_header(): fix infinite loop on broken zlib input
  unpack_loose_header(): report headers without NUL as "bad"
  unpack_loose_header(): simplify next_out assignment
  loose_object_info(): BUG() on inflating content with unknown type
git-zlib.c
object-file.c
t/t1006-cat-file.sh