]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fixed avail_out == 0 conditional not returning need_more in deflate_quick.
authorNathan Moinvaziri <nathan@nathanm.com>
Fri, 26 Jun 2020 05:52:59 +0000 (22:52 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 28 Jun 2020 09:17:44 +0000 (11:17 +0200)
commit3f6e40d8fc36ad46ea4e78d4a213dc5546f60196
tree068820ba97065372e2710cad2b01254eac0e2992
parent2026830ceab48a364d0bc8d5d36f31fa745f1368
Fixed avail_out == 0 conditional not returning need_more in deflate_quick.
Fixed ending block when returning need_more caused problems with inflate.

So instead of ending the block each time the function returns to finish the last block, we check upon start to see if it is the last block and if the last block has been started, and if not it will close the previous block and start the last block.
deflate_quick.c