Subject: lib/32119: recently introduced zlib bugs
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 11/19/2005 14:26:00
>Number:         32119
>Category:       lib
>Synopsis:       recently introduced zlib bugs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 19 14:26:00 +0000 2005
>Originator:     Dan McMahill
>Release:        NetBSD-current (fall of 2005), NetBSD-3 branch
rev 1.10 of src/lib/libz/inftrees.c


The change made in rev 1.10 of src/lib/libz/inftrees.c causes gunzip to break
in certain cases which seem to be valid .gz files.  In fact, the commit message
for rev 1.10 mentions a gentoo bug report which had the patch which was applied.
At the end of the gentoo bug report (# 94584 which can be seen at, it seems that they have also
experienced problems with this patch.


cd /usr/pkgsrc/lang/f2c && make extract

and you'll see that one of the files fails to gunzip with a data stream error.


unknown.  I have verified that if I undo the 1.9 to 1.10 change to inftrees.c
that I'm able to gunzip the file in question (correctly) again, but that leaves
the issue that this change was supposed to fix.