-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zip] 7z complains about "Headers Error" when large files are added to a zip archive #623
Comments
Note : I'm getting the same error if I use the I'm quite confused about what I'm missing here. |
Without knowing what 7z is complaining about it is rather hard to know. "Zip64" and Zip in general has a lot of legacy and not too well defined extensions. So "Headers Error" is rather useless to find out what it is expecting. Is 7z able to decompress the file? |
ok, that lead to https://sourceforge.net/p/sevenzip/discussion/45797/thread/13e7d575/ TLDR; When the file is added we do not know if the size will exceed 32 bits and therefore it should be added as Zip64. So the file header may not be Zip64, even if it ends up being it. 7z decompresses it fine anyway, so I am not going to worry about it. |
So if I understand correctly:
Thanks for your investigation and time. |
Note : the issue mentioned in https://sourceforge.net/p/sevenzip/discussion/45797/thread/13e7d575/#e90f may be golang/go#33116 Is this issue related to mine ? |
Yes. I see I accidentally reverted the fix for it in #432 |
For information, I've tried the version at 999ca10 but
and the output of
I'm letting you reopen this issue if you think there is something to fix here. Otherwise I accept and keep in mind that Thanks for your time Regards Rémi |
Hmmm... the 7zip UI no longer shows any error: WinZip is also happy about the file:
|
Okay, understood. This seems related to the default version of Different 7zip versionsMy Ubuntu workstation default versionBy using the default
With the latest 7-Zip version from the official websiteWith the latest version of
Regarding the patch applied in 7020af7 :
Version details on my workstation
provided by
For information, my workstation is:
ConclusionI'm not quite sure why Anyhow, this seems absolutely not related to your library. Thanks again Regards Rémi |
Hi,
Context
I'm trying to generate a zip archive of huge files (something like 2GB each).
The generated zip archive can successfully be extracted using my Ubuntu
unzip
command.But it raises an error when I try to extract using my graphical user interface or
7z
.Here is the output of
7z
in test integrity mode:Since
unzip
is able to extract the files, I would say that the archive is valid.But I definitely does not understand why
7z
is complaining here.I've absolutely no experience in ZIP / ZIP64 archives and I may be using your library in a wrong way...
How to reproduce
I've used the following code to :
using
go 1.18.3
github.com/klauspost/compress v1.15.6
Test files are filled with zero and created using a command such as
dd if=/dev/zero of=./file1 bs=1G count=2
Thanks in advance for your time and consideration
The text was updated successfully, but these errors were encountered: