]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Added unit test for inflate with Z_FINISH and no window.
authorNathan Moinvaziri <nathan@nathanm.com>
Wed, 22 Nov 2023 06:30:45 +0000 (22:30 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 23 Nov 2023 12:43:51 +0000 (13:43 +0100)
commit0b3bb1d823245334861628176ccec4095f352cbf
tree1250e805c241d3014bbf4806d528060cc28fe92a
parent6592accb2541aa637844cabef16b7adbb4cec4e1
Added unit test for inflate with Z_FINISH and no window.

This test decompresses a small git pack object with the text:
"alone in the dark". By providing inflate with Z_FINISH, it should not use a
sliding window according to zlib docs. We purposefully limit the read buffer
size to trigger CHECK mode to bail early.
test/GH-1600/packobj.gz [new file with mode: 0644]
test/cmake/test-issues.cmake
test/minideflate.c