From unknown Mon Aug 18 11:07:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16699 <16699@debbugs.gnu.org> To: bug#16699 <16699@debbugs.gnu.org> Subject: Status: gzip -l bug Reply-To: bug#16699 <16699@debbugs.gnu.org> Date: Mon, 18 Aug 2025 18:07:51 +0000 retitle 16699 gzip -l bug reassign 16699 gzip submitter 16699 "Chris Pitzel" severity 16699 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 21:52:49 2014 Received: (at submit) by debbugs.gnu.org; 9 Feb 2014 02:52:49 +0000 Received: from localhost ([127.0.0.1]:58568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCKVk-00008l-KH for submit@debbugs.gnu.org; Sat, 08 Feb 2014 21:52:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53027) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCKQE-0008Og-Kd for submit@debbugs.gnu.org; Sat, 08 Feb 2014 21:47:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCKQ7-00062U-JP for submit@debbugs.gnu.org; Sat, 08 Feb 2014 21:47:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, MSGID_MULTIPLE_AT autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCKQ7-00062P-Fq for submit@debbugs.gnu.org; Sat, 08 Feb 2014 21:46:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCKQ1-00014m-KQ for bug-gzip@gnu.org; Sat, 08 Feb 2014 21:46:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCKPv-00061p-QL for bug-gzip@gnu.org; Sat, 08 Feb 2014 21:46:53 -0500 Received: from mail751.megamailservers.com ([69.49.98.61]:58658 helo=mail145c7.megamailservers.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCKPv-000615-K5 for bug-gzip@gnu.org; Sat, 08 Feb 2014 21:46:47 -0500 X-Authenticated-User: cm000.sasktel.net Received: from d830pc (216-197-225-42.msjw.hsdb.sasknet.sk.ca [216.197.225.42] (may be forged)) (authenticated bits=0) by mail145c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id s192kh4Y025587 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 8 Feb 2014 21:46:45 -0500 From: "Chris Pitzel" To: Subject: gzip -l bug Date: Sat, 8 Feb 2014 20:46:27 -0600 Message-ID: <003401cf2541$22949ae0$67bdd0a0$@pitzel@usask.ca> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0035_01CF250E.D7FA2AE0" X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-ca Thread-Index: Ac8lQSEv+v8uqlPxSsqgrPoBZ4KVrg== X-CSC: 0 X-CHA: v=2.1 cv=X+1rdgje c=1 sm=1 tr=0 a=POOwvGLu5YPLAMp1h4NNXg==:117 a=POOwvGLu5YPLAMp1h4NNXg==:17 a=BDKbP5mgAAAA:8 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=mDV3o1hIAAAA:8 a=RNy-ho1FuuIYQESs5LYA:9 a=CjuIK1q_8ugA:10 a=Wri4r2Ea0NUA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=hqUobZjCf1efmXihU_EA:9 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 X-CTCH-RefID: str=0001.0A020202.52F6EC15.0048, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 08 Feb 2014 21:52:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is a multi-part message in MIME format. ------=_NextPart_000_0035_01CF250E.D7FA2AE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit A fairly obvious bug with the list (-l) option of gunzip. In this case, "grandma-new.img" is approximately 320 gigabytes. Compressed down to 46gb. "Uncompressed", and "ratio" are wrong. root@xxx:/Virt# gunzip -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 . There is NO WARRANTY, to the extent permitted by law. Written by Jean-loup Gailly. root@xxx:/Virt# gunzip -l /video1/grandma-new.img.gz compressed uncompressed ratio uncompressed_name 46492229886 2245353472 -1970.6% /video1/grandma-new.img root@xxx:/Virt# ------=_NextPart_000_0035_01CF250E.D7FA2AE0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

A fairly = obvious bug with the list (-l) option of gunzip.  In this case, = “grandma-new.img” is approximately 320 gigabytes.  = Compressed down to 46gb.  “Uncompressed”, and = “ratio” are wrong. 

 

 

 

root@xxx:/Virt# gunzip -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.

root@xxx:/Virt# gunzip -l = /video1/grandma-new.img.gz

         = compressed        uncompressed  = ratio uncompressed_name

        = 46492229886          = 2245353472 -1970.6% /video1/grandma-new.img

root@xxx:/Virt#

------=_NextPart_000_0035_01CF250E.D7FA2AE0-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 08 22:58:21 2014 Received: (at 16699) by debbugs.gnu.org; 9 Feb 2014 03:58:21 +0000 Received: from localhost ([127.0.0.1]:58738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCLXA-0006hk-L9 for submit@debbugs.gnu.org; Sat, 08 Feb 2014 22:58:21 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:38805) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCLX8-0006hb-Tt for 16699@debbugs.gnu.org; Sat, 08 Feb 2014 22:58:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id E73D439E8016; Sat, 8 Feb 2014 19:58:17 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uNUm0po5jPWE; Sat, 8 Feb 2014 19:58:17 -0800 (PST) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 9834B39E8011; Sat, 8 Feb 2014 19:58:17 -0800 (PST) Message-ID: <52F6FCD9.3040807@cs.ucla.edu> Date: Sat, 08 Feb 2014 19:58:17 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Chris Pitzel , 16699@debbugs.gnu.org Subject: Re: bug#16699: gzip -l bug References: <003401cf2541$22949ae0$67bdd0a0$@pitzel@usask.ca> In-Reply-To: <003401cf2541$22949ae0$67bdd0a0$@pitzel@usask.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 16699 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) It's a known problem, inherent to the gzip format (which stores only the last 32 bits of the uncompressed size). Fixing it would require changing the format, which is unlikely at this point. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 09 11:11:50 2014 Received: (at 16699-done) by debbugs.gnu.org; 9 Feb 2014 16:11:51 +0000 Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCWz0-0003um-Ch for submit@debbugs.gnu.org; Sun, 09 Feb 2014 11:11:50 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:65147) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCWyx-0003ub-NC for 16699-done@debbugs.gnu.org; Sun, 09 Feb 2014 11:11:48 -0500 Received: by mail-pd0-f169.google.com with SMTP id v10so5131190pde.28 for <16699-done@debbugs.gnu.org>; Sun, 09 Feb 2014 08:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=6NasrnV1G38VX8e5+xLu2h8ujtPSpgPKvx1PUaEGBjM=; b=j9dYb/JNyQ8XNaegCDs5bGJgiddmai2cgyOS2vsIMM5GF8NOooEg8hM2Xvo4WXtary glwxuBG7GxXtc2yOgQlxDyOEZriU7bzyKC59AYkxfZDnHl2f8BmRVqWiY1gLZTEyngPs T781t3gveT+VQdoj0flitKumDQrPj6suATPN7/7lyoQwgvckCSV/aWwpydCCUOq9Fw6m 1/oTea+7x2ogvWv1/z0mtlYrHzUMMhhTl0Emwql1SSJyjsZmruCZM07FPtRAXKDiK1Vg 9TbYV7yWXqH1wtyWHkjwE6FUZmebrBWGOA7CUn90ulngVKyijjTivH9kEKDllGEKPfqV 7LoA== X-Received: by 10.66.240.4 with SMTP id vw4mr20395052pac.26.1391962306872; Sun, 09 Feb 2014 08:11:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.201.231 with HTTP; Sun, 9 Feb 2014 08:11:26 -0800 (PST) In-Reply-To: <52F6FCD9.3040807@cs.ucla.edu> References: <52F6FCD9.3040807@cs.ucla.edu> From: Jim Meyering Date: Sun, 9 Feb 2014 08:11:26 -0800 X-Google-Sender-Auth: U7RNKOxA0SbT_F9CTCiBkSUxIDU Message-ID: Subject: Re: bug#16699: gzip -l bug To: Paul Eggert Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16699-done Cc: 16699-done@debbugs.gnu.org, Chris Pitzel X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Sat, Feb 8, 2014 at 7:58 PM, Paul Eggert wrote: > It's a known problem, inherent to the gzip format (which stores only the > last 32 bits of the uncompressed size). Fixing it would require changing > the format, which is unlikely at this point. Thanks for the report Chris and for explaining, Paul. I'm marking this issue as done (via the -done address Cc'd above). From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 06:16:20 2014 Received: (at 16699) by debbugs.gnu.org; 10 Feb 2014 11:16:21 +0000 Received: from localhost ([127.0.0.1]:39239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCoqa-0007Rr-7I for submit@debbugs.gnu.org; Mon, 10 Feb 2014 06:16:20 -0500 Received: from mail-pb0-f41.google.com ([209.85.160.41]:41141) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCmlX-0002hZ-J0 for 16699@debbugs.gnu.org; Mon, 10 Feb 2014 04:03:00 -0500 Received: by mail-pb0-f41.google.com with SMTP id up15so6024638pbc.0 for <16699@debbugs.gnu.org>; Mon, 10 Feb 2014 01:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=7cynS1qX10774EmCokOEH08onow5Ifa/G7un6P8rh58=; b=dKzbSz3QPlwBb+BPlLUMv9wHkqXlWCuKr2liCFOqHuoguEi/CHaCT6CHkHXDUGEVrB FaqXKmicwpw5J2ts495zfzHvruVKd/5rr1roi5uozchpY9C3PiQ+aGynXpWtEqgQyquo Kegy00wH311Xg2HYcl2+ucVpV+7kDfVjiL8l7jjXOyr6ZahhVJul9nnaXSMl2G39U2z5 GtjsbzzKJ8Qq8hoEdJWfND5Xv05i5rtdLSh7Ob+h/OptrJaEsRLCQVXBx6nzrTs1+11v SMhlujxaNMc95Is/rynhsGXsLITNuTJRVJpzuZ1k9cxje3UwE1s3HhJa5cnhRnTB+VAZ 3u1g== MIME-Version: 1.0 X-Received: by 10.68.215.68 with SMTP id og4mr36108244pbc.112.1392022973652; Mon, 10 Feb 2014 01:02:53 -0800 (PST) Received: by 10.70.42.177 with HTTP; Mon, 10 Feb 2014 01:02:53 -0800 (PST) In-Reply-To: <52f6ef87.d55c8c0a.b81d.5049SMTPIN_ADDED_BROKEN@mx.google.com> References: <52f6ef87.d55c8c0a.b81d.5049SMTPIN_ADDED_BROKEN@mx.google.com> Date: Mon, 10 Feb 2014 11:02:53 +0200 X-Google-Sender-Auth: O4RiyiDsdmMT4utzdAYTAH77iHU Message-ID: Subject: Re: bug#16699: gzip -l bug From: "Vitaly V. Ch" To: Chris Pitzel Content-Type: multipart/alternative; boundary=001a1134a8e0dd277404f2099a6b X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16699 X-Mailman-Approved-At: Mon, 10 Feb 2014 06:16:18 -0500 Cc: 16699@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: vitaly.v.ch@chernookiy.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a1134a8e0dd277404f2099a6b Content-Type: text/plain; charset=ISO-8859-1 man 1 gzip and read section "bugs" \\wbr Vitaly Chernooky On Sun, Feb 9, 2014 at 4:46 AM, Chris Pitzel wrote: > A fairly obvious bug with the list (-l) option of gunzip. In this case, > "grandma-new.img" is approximately 320 gigabytes. Compressed down to 46gb. > "Uncompressed", and "ratio" are wrong. > > > > > > > > root@xxx:/Virt# gunzip -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 . > > There is NO WARRANTY, to the extent permitted by law. > > > > Written by Jean-loup Gailly. > > root@xxx:/Virt# gunzip -l /video1/grandma-new.img.gz > > compressed uncompressed ratio uncompressed_name > > 46492229886 2245353472 -1970.6% /video1/grandma-new.img > > root@xxx:/Virt# > > -- \\wbr Vitaly --001a1134a8e0dd277404f2099a6b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
man 1 gzip

and read section "b= ugs"

\\wbr Vitaly Chernooky


On Sun, Feb 9, 2014 at 4:46 AM, C= hris Pitzel <chris.pitzel@usask.ca> wrote:
A fairly obvious bug with the list (-l) opti= on of gunzip. =A0In this case,
"grandma-new.img" is approximately 320 gigabytes. =A0Compressed d= own to 46gb.
"Uncompressed", and "ratio" are wrong.







root@xxx:/Virt# gunzip -V

gzip 1.6

Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.

Copyright (C) 1993 Jean-loup Gailly.

This is free software. =A0You 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.

root@xxx:/Virt# gunzip -l /video1/grandma-new.img.gz

=A0 =A0 =A0 =A0 =A0compressed =A0 =A0 =A0 =A0uncompressed =A0ratio uncompre= ssed_name

=A0 =A0 =A0 =A0 46492229886 =A0 =A0 =A0 =A0 =A02245353472 -1970.6% /video1/= grandma-new.img

root@xxx:/Virt#




--
\\wbr Vitaly
--001a1134a8e0dd277404f2099a6b-- From unknown Mon Aug 18 11:07:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Mar 2014 11:24:16 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator