-
Notifications
You must be signed in to change notification settings - Fork 307
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
Reached end of entry, but crc verification failed #135
Comments
Thanks for the sample zip. I was able to reproduce this issue. Will look into it. |
I wonder which tool was used to create the zip file. It slightly deviated from the zip specification. Zip4j was designed to overcome such inconsistencies, but however, there was a problem with that logic which can arise in some specific circumstances. I fixed it. I will include the fix in the next release. Technical info related to the error (if you are interested in details or for my future reference): The entry in the zip file had a zip64 header written to it. When this entry is defined, the corresponding entries in the zip headers have to be defined as the maximum limit in the headers. For example, the compressed size in the header has to be set to set as |
The zip file was created by Ant's Zip task.
The Ant version is 1.10.4 (part of Netbeans 11.2 distribution). |
Fixed in v2.3.1 released today. |
* Added test case for error extracting zip file due to CRC error, but zip file should be OK. Zip file was generated using the <zip> ant task. It is extracted fine using other programs. * Fixed CRC test so that it passes if extraction completes without exception and that zip contained at least index.html and images.
Happened with me. Unfortunately, I can not provide a zip file publicly :( |
I am having this problem right now again with Zip4J 2.11.1. Unfortunately I am unable to provide the file as it contains confidential information of our client. 7zip does not complain about the file. |
I am having this problem right now again with Zip4J 2.11.5 |
Latest from git fails to extract zip file that appears to be fine. The error:
I have forked the project and added a test case here:
https://github.com/shannah/zip4j
Zip file in question:
https://github.com/shannah/zip4j/blob/master/src/test/resources/test-archives/website_template.zip
Test case
https://github.com/shannah/zip4j/blob/master/src/test/java/net/lingala/zip4j/ExtractZipFileIT.java#L386-L391
The text was updated successfully, but these errors were encountered: