"gunzip --list" displays nonsense for very large files
Bug #513232 reported by
rivode
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.
To post a comment you must log in.
Same thing on Solaris, and all other Linux flavors I've tried.
Seems like ancient gunzip bug that nobody wants to fix.