Subject: bin/26907: gzip complain when working with more than 4GB uncompressed data
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <erh@swapsimple.com>
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
>Closed-Date:
>Last-Modified:
>Originator: Eric Haszlakiewicz
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD poe.swapsimple.com 2.0G NetBSD 2.0G (POE) #0: Fri Sep 10 15:08:37 CDT 2004 erh@poe.swapsimple.com:/usr/build/POE i386
Architecture: i386
Machine: i386
>Description:
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.
>How-To-Repeat:
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
>Fix:
Probably bump the size of some variable somewhere.
>Release-Note:
>Audit-Trail:
>Unformatted: