Subject: bin/26907: gzip complain when working with more than 4GB uncompressed data
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/10/2004 16:12:55
>Number:         26907
>Category:       bin
>Synopsis:       gzip complains when working with more than 4GB uncompressed data
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 10 21:39:00 UTC 2004
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 2.0G
System: NetBSD 2.0G NetBSD 2.0G (POE) #0: Fri Sep 10 15:08:37 CDT 2004 i386
Architecture: i386
Machine: i386
	Various gzip (probably libz) operations fail when dealing with more than
4GB of uncompressed data.  For instance, if you try extracting a gzipped
file that is 4097 MB when uncompressed, you always get a:
gzip: invalid compressed data--length error
even though it actually uncompresses just fine.

gzip -l and gzip -t fail in similar ways.

	dd if=/dev/zero bs=1m count=4097 | gzip -c > test.gz
	gzip -l test.gz  # Notice the uncompressed size is 1MB, ratio is negative
	gzip -c -d test.gz | wc -c   # Notice the error, but 4097MB were extracted

	Probably bump the size of some variable somewhere.