Created attachment 458354 [details] Minimal test case When given zero-length input and compression level 0 (no compression), zlib-1.2.9's deflater produces output which its inflater cannot process. See the attached source code for an example. This is a regression from zlib-1.2.8. I attempted to report this upstream, but upstream's only contact point appears to be email, and I got a "4.3.5 server configuration problem" SMTP error when trying to send to zlib@gzip.org. If someone knows how to get in touch with the zlib developers, please pass this along.
the mailing list is here: http://madler.net/mailman/listinfo/zlib-devel_madler.net
It looks like the mail eventually went through and upstream is in the process of fixing the bug.
The bug is now fixed in zlib-1.2.10.
commit d3ef8acabfcb307fd049968acf232dea3dc751fd Author: Lars Wendler <polynomial-c@gentoo.org> Date: Tue Jan 3 08:25:27 2017 sys-libs/zlib: Bump to version 1.2.10 (bug #604404). Package-Manager: Portage-2.3.3, Repoman-2.3.1
*** Bug 604552 has been marked as a duplicate of this bug. ***