|
From: | Antonio Diaz Diaz |
Subject: | bug#68329: '--list' fails on multimember files |
Date: | Mon, 08 Jan 2024 18:06:39 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Dear Paul and Jim,I have noticed that the new method of implementing --list prints incorrect values for multimember files. It decompresses the whole file, but just counts the uncompressed size of the last member (as it did gzip <= 1.11 by reading the ISIZE field). You can reproduce the problem by concatenating two copies of the gzip-1.13 tarball:
$ gzip -l 2xgzip-1.13.tar.gz compressed uncompressed ratio uncompressed_name 2588316 6205440 58.3% 2xgzip-1.13.tar $ gzip -cd 2xgzip-1.13.tar.gz | wc -c 12410880I think the problem is that bytes_out is set to zero in lines 791 and 998 of gzip.c so that member length can be checked, but the cumulative value of bytes_out is not saved for later, when the total uncompressed size of the file is displayed by do_list and then added to total_out.
Thanks, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |