[Bug 1022287] Re: negative compression ratio if list a big gzip file

Eric Druid 1022287 at bugs.launchpad.net
Tue Feb 19 14:10:10 UTC 2013


To me it looks like this is an integer overflow  on the uncompressed
filesize

druid@#### ~ gzip -l dump.sql.gz
         compressed        uncompressed  ratio uncompressed_name
         2850064545          1792003237 -59.0% dump.sql
druid@#### ~ gzip --version
gzip 1.4
Copyright (C) 2007 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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gzip in Ubuntu.
https://bugs.launchpad.net/bugs/1022287

Title:
  negative compression ratio if list a big gzip file

Status in “gzip” package in Ubuntu:
  Confirmed

Bug description:
  Please notice the uncompressed part and ratio, there should be wrong.
  uncompressed size should be more than 200GiB actually. it should be a
  overflow of integer.

  tommy at tommy-ubuntu-1110:/media/PartBackup/sdb3$ gzip -l sdb3.ntfsclone.img.gz 
           compressed        uncompressed  ratio uncompressed_name
         185808678561          4242664346 -4279.5% sdb3.ntfsclone.img
  tommy at tommy-ubuntu-1110:/media/PartBackup/sdb3$ ls -l sdb3.ntfsclone.img.gz 
  -rw-rw-r-- 1 tommy tommy 185808678561  7月  8 17:04 sdb3.ntfsclone.img.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gzip/+bug/1022287/+subscriptions




More information about the foundations-bugs mailing list