[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48424: bug in "gzip -lv gzip-file"
From: |
Robert Urban |
Subject: |
bug#48424: bug in "gzip -lv gzip-file" |
Date: |
Fri, 14 May 2021 20:01:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
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
smime.p7s
Description: S/MIME Cryptographic Signature
- bug#48424: bug in "gzip -lv gzip-file",
Robert Urban <=