"gunzip --list" displays nonsense for very large files

Bug #513232 reported by rivode
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gzip (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gzip

"gunzip --list" gives incorrect results for files of size (2^32 - 1) bytes or larger.

To reproduce:

$ dd if=/dev/zero bs=1 seek=$((2**32-2)) count=1 of=noerror
$ dd if=/dev/zero bs=1 seek=$((2**32-1)) count=1 of=error
$ gzip -c noerror > noerror.gz
$ gzip -c error > error.gz
$ gunzip --list noerror.gz
         compressed uncompressed ratio uncompressed_name
            4168183 4294967295 99.9% noerror
$ gunzip --list error.gz
         compressed uncompressed ratio uncompressed_name
            4168181 0 0.0% error

I'm using gzip 1.3.12-8ubuntu1 on Karmic.

Revision history for this message
P.Constantine (pconstantine) wrote :

Same thing on Solaris, and all other Linux flavors I've tried.
Seems like ancient gunzip bug that nobody wants to fix.

Revision history for this message
rivode (bugs-launchpad-net-rivode) wrote :

It turns out it's a problem with the file format:

http://lists.gnu.org/archive/html/bug-gzip/2010-03/msg00009.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.