Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#14127 - [unzip] lacks large fiel support
Attached to Project:
Arch Linux
Opened by N K (synackfin) - Monday, 06 April 2009, 20:17 GMT
Last edited by Douglas Soares de Andrade (dsa) - Wednesday, 10 June 2009, 15:26 GMT
Opened by N K (synackfin) - Monday, 06 April 2009, 20:17 GMT
Last edited by Douglas Soares de Andrade (dsa) - Wednesday, 10 June 2009, 15:26 GMT
|
DetailsDescription:
package "zip" is correctly compiled with LARGE_FILE_SUPPORT and ZIP64_SUPPORT package "unzip", however, lacks these settings. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: unzip any file whose _compressed_ size is over 4.3GB run `zip -v` to see the flags zip was compiled with run `unzip -v` to see the flags unzip was compiled with |
This task depends upon
Closed by Douglas Soares de Andrade (dsa)
Wednesday, 10 June 2009, 15:26 GMT
Reason for closing: Fixed
Additional comments about closing: Upgraded for unzip 6.0 with large file support.
Wednesday, 10 June 2009, 15:26 GMT
Reason for closing: Fixed
Additional comments about closing: Upgraded for unzip 6.0 with large file support.
According to HP, unzip pre-6.0 lacks the ability to deal w/ files with compressed size > 4GB
Care to link to versions higher than 6?
[ "$CARCH" = "x86_64" ] && (patch -Np0 -i ../unzip542-size-64bit.patch || return 1)
I think it's strange, because gcc supports int64_t and uint64_t on 32-bit machines (and therefore the patch would work on 32-bit machines), and i686 boxes should be allowed to unzip files with a compressed size > 4GB.
// Output for unzip -l (4.6GB big file) -- shows wrong compressed size (725MB)
# unzip -l S111408-v3.zip
Archive: S111408-v3.zip
warning [S111408-v3.zip]: 4294967296 extra bytes at beginning or within zipfile
(attempting to process anyway)
Length Date Time Name
-------- ---- ---- ----
725360569 11-14-08 12:47 S111408-v3.txt
-------- -------
725360569 1 file
// Output from gunzip -l (4.6GB big file) -- shows correct results
[nkumar@archusb Nasdaq]$ gunzip -l S111408-v3.zip
compressed uncompressed ratio uncompressed_name
4697150667 -1 0.0% S111408-v3.zip
# uname -a
Linux xxxxx 2.6.28-ARCH #1 SMP PREEMPT Tue Mar 17 07:22:53 CET 2009 x86_64 Quad-Core AMD Opteron(tm) Processor 2376 AuthenticAMD GNU/Linux
to view the patches: http://cvs.fedora.redhat.com/viewvc/rpms/unzip/F-7/unzip.spec?view=co
patch source for near-4GB.patch: http://svn.pardus.org.tr/pardus/2007/system/base/unzip/files/unzip-5.52-near-4GB.patch
patch source for near-4GB2.patch: http://svn.pardus.org.tr/pardus/2007/system/base/unzip/files/unzip-5.52-near-4GB2.patch
Fedora unzip542.rpm summary:
Summary: A utility for unpacking zip files
Name: unzip
Version: 5.52
License: BSD
Source: ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz
Patch0: unzip542-rpmoptflags.patch
Patch2: unzip-5.51-link-segv.patch
Patch3: unzip-5.51-link-segv2.patch
Patch6: unzip-5.52-toctou.patch
Patch7: unzip-5.52-near-4GB.patch
Patch8: unzip-5.52-near-4GB2.patch
Patch9: unzip-5.52-long-filename.patch
Patch10: unzip-5.52-makefile.patch
ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tgz