GNU bug report logs - #48424
bug in "gzip -lv gzip-file"

Previous Next

Package: gzip;

Reported by: Robert Urban <robert.urban <at> stromasys.com>

Date: Fri, 14 May 2021 19:27:01 UTC

Severity: normal

Merged with 17804, 29089, 30935, 30936, 38766, 42965, 52227

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Urban <robert.urban <at> stromasys.com>
To: bug-gzip <at> gnu.org
Subject: bug in "gzip -lv gzip-file"
Date: Fri, 14 May 2021 20:01:21 +0200
[Message part 1 (text/plain, inline)]
Hello,

gzip (at least my version, v1.10 running on Fedora 33) apparently uses an
unsigned 32-bit value when displaying the uncompressed size of a gzipped file.

This demonstrates the problem:

Create a 5GiB test file:

    $ fallocate -l $((5*1024*1024*1024)) fatfile

Compress it:

    $ gzip -c fatfile > fatfile.gz

List the contents:

    $ gzip -lv fatfile.gz
    method  crc     date  time           compressed        uncompressed  ratio
    uncompressed_name
    defla 193838c3 May 14 19:53             5857306          1073741824  99.5%
    fatfile

As you can see, the value in the "uncompressed" column is exactly 1GiB.

Regards,
Robert Urban

Please cc me in replies, as I'm not a subscriber of the list

[Message part 2 (text/html, inline)]
[smime.p7s (application/pkcs7-signature, attachment)]

This bug report was last modified 3 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.