]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix incorrect inflateSyncPoint() return value with DFLTCC
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 28 Sep 2020 19:21:49 +0000 (21:21 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 9 Oct 2020 09:35:23 +0000 (11:35 +0200)
commitbc5b9b24ef8d2178fd551d4e47a9b6ca85a97343
tree0b55dd5834cb812db244f4670068ee4a6d481ff5
parent05d4a0857a1ac57287af01d0007cdb1ac05e2b29
Fix incorrect inflateSyncPoint() return value with DFLTCC

DFLTCC does not provide the necessary information to implement
inflateSyncPoint() - Incomplete-Function Status and Incomplete-Function
Length are the fields that provide the relevant information, but
unfortunately it's not enough. If DFLTCC is in use, the current code
checks software decompression state and always returns 0. This
(rightfully) confuses rsync, so fix by returning Z_STREAM_ERROR
instead.
arch/s390/README.md
arch/s390/dfltcc_inflate.h
inflate.c