Skip to content
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

Cannot read zip files created with java zip api with total size greater than max int value #77

Closed
srikanth-lingala opened this issue Oct 4, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@srikanth-lingala
Copy link
Owner

Trying to open a zip file created with java's zip api and zip64 format leads to an exception.

This is because java zip api only writes entries in zip64 headers whose values are greater than max int value, and does not fill all the fields of the zip64 headers. For example, if the offsetLocalFileHeader is greater than max int value, but the file sizes are less than max int value, java zip api only write offsetLocalFileHeader in the zip64 headers. zip4j header reading has to be adjusted accordingly.

@srikanth-lingala srikanth-lingala added the bug Something isn't working label Oct 4, 2019
@srikanth-lingala srikanth-lingala self-assigned this Oct 4, 2019
@srikanth-lingala srikanth-lingala changed the title Could not read zip files created with jdk's zip api greater than 4gb Cannot read zip files created with jdk's zip api greater than max int value Oct 4, 2019
@srikanth-lingala srikanth-lingala changed the title Cannot read zip files created with jdk's zip api greater than max int value Cannot read zip files created with jdk's zip api with total size greater than max int value Oct 4, 2019
@srikanth-lingala srikanth-lingala changed the title Cannot read zip files created with jdk's zip api with total size greater than max int value Cannot read zip files created with java zip api with total size greater than max int value Oct 4, 2019
@srikanth-lingala
Copy link
Owner Author

Fixed in v2.2.2 released today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant