Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604404 - sys-libs/zlib-1.2.9 generates incorrect output for zero-length input (regression)
Summary: sys-libs/zlib-1.2.9 generates incorrect output for zero-length input (regress...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: REGRESSION
: 604552 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-02 14:45 UTC by Andrew Church
Modified: 2017-01-08 13:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Minimal test case (test.c,948 bytes, text/plain)
2017-01-02 14:45 UTC, Andrew Church
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2017-01-02 14:45:50 UTC
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.
Comment 1 SpanKY gentoo-dev 2017-01-02 17:57:13 UTC
the mailing list is here:
http://madler.net/mailman/listinfo/zlib-devel_madler.net
Comment 2 Andrew Church 2017-01-02 22:21:55 UTC
It looks like the mail eventually went through and upstream is in the process of fixing the bug.
Comment 3 Andrew Church 2017-01-03 04:03:57 UTC
The bug is now fixed in zlib-1.2.10.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-01-03 07:26:31 UTC
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
Comment 5 Coacher 2017-01-08 13:20:03 UTC
*** Bug 604552 has been marked as a duplicate of this bug. ***