GNU bug report logs - #24371
Bad value of size with --list

Previous Next

Package: gzip;

Reported by: messages JB <messages.jb <at> free.fr>

Date: Mon, 5 Sep 2016 16:12:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: messages JB <messages.jb <at> free.fr>
Subject: bug#24371: closed (Re: bug#24371: Bad value of size with --list)
Date: Tue, 06 Sep 2016 01:47:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#24371: Bad value of size with --list

which was filed against the gzip package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 24371 <at> debbugs.gnu.org.

-- 
24371: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24371
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jim Meyering <jim <at> meyering.net>
To: messages JB <messages.jb <at> free.fr>
Cc: 24371-done <at> debbugs.gnu.org
Subject: Re: bug#24371: Bad value of size with --list
Date: Mon, 5 Sep 2016 18:45:34 -0700
On Mon, Sep 5, 2016 at 2:39 AM, messages JB <messages.jb <at> free.fr> wrote:
> Hi!
>
> The size of the file restored by the option "--list" is incorrect if the
> file is more big than 4GB.
>
>    [/mnt/DATA/TEST]ll
>    total 8184100
>    -rw-r--r-- 1 jacques jacques *8380511744* févr. 16  2016 file.bin
>
>    [/mnt/DATA/TEST]gzip file.bin
>
>    [/mnt/DATA/TEST]gzip -l file.bin.gz
>              compressed        uncompressed  ratio uncompressed_name
>              2490092407 *4085544448*  39.1% file.bin
>
>    [/mnt/DATA/TEST]gzip -V
>    gzip 1.6

Thanks for the report.

However, this is a known and documented limitation in the format, so
cannot be fixed in gzip. Consider using a tool with a more modern
format, like xz.

Here is the relevant part of the documentation from "info gzip":

     The ‘gzip’ format represents the input size modulo 2^32, so the
     uncompressed size and compression ratio are listed incorrectly for
     uncompressed files 4 GiB and larger.  To work around this problem,
     you can use the following command to discover a large uncompressed
     file’s true size:

          zcat file.gz | wc -c

Since there is nothing in gzip that can be changed to address this,
I'm closing the ticket.

[Message part 3 (message/rfc822, inline)]
From: messages JB <messages.jb <at> free.fr>
To: bug-gzip <at> gnu.org
Subject: Bad value of size with --list
Date: Mon, 5 Sep 2016 11:39:48 +0200
[Message part 4 (text/plain, inline)]
Hi!

The size of the file restored by the option "--list" is incorrect if the 
file is more big than 4GB.

   [/mnt/DATA/TEST]ll
   total 8184100
   -rw-r--r-- 1 jacques jacques *8380511744* févr. 16  2016 file.bin

   [/mnt/DATA/TEST]gzip file.bin

   [/mnt/DATA/TEST]gzip -l file.bin.gz
             compressed        uncompressed  ratio uncompressed_name
             2490092407 *4085544448*  39.1% file.bin

   [/mnt/DATA/TEST]gzip -V
   gzip 1.6
   Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
   Copyright (C) 1993 Jean-loup Gailly.
   This is free software.  You may redistribute copies of it under the
   terms of
   the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
   There is NO WARRANTY, to the extent permitted by law.

   Written by Jean-loup Gailly.

   [/mnt/DATA/TEST]


best regards
[Message part 5 (text/html, inline)]

This bug report was last modified 8 years and 320 days ago.

Previous Next


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