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

7zip fails with zip file where files in the central directory header don't flag UNKNOWN_CRC32_AND_FILE_SIZES #17

Merged
merged 1 commit into from
May 7, 2015

Conversation

dbaeumer
Copy link
Contributor

@dbaeumer dbaeumer commented May 5, 2015

If you add entries to a zip using a stream the crc and sizes aren't know. 7Zip fails validating and extracting such a zip file if the UNKNOWN_CRC32_AND_FILE_SIZES isn't part of the central directory header as well.

@thejoshwolfe
Copy link
Owner

Nice pull request. It looks like your changes are actually more conformant to the spec than my code. Hard to believe; I thought I'd really did my research reading the spec. Nice work.

Tested unzipping with Linux InfoZip, Windows Compressed Folder, 7-Zip 9.20, 7-Zip 9.38, Mac Archive Utility.

thejoshwolfe added a commit that referenced this pull request May 7, 2015
7zip fails with zip file where files in the central directory header don't flag UNKNOWN_CRC32_AND_FILE_SIZES
@thejoshwolfe thejoshwolfe merged commit daf2464 into thejoshwolfe:master May 7, 2015
@thejoshwolfe
Copy link
Owner

yazl 2.2.2 published. Let me know if you have any other issues, and thanks again for your contribution.

@dbaeumer
Copy link
Contributor Author

dbaeumer commented May 8, 2015

Thanks for integrating the pull request so quickly. And thanks a lot for implementing yazl and yauzl. Makes our lives a lot easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants