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

Read corrupted zip files with more than 65535 entries #597

Open
Nekto89 opened this issue Oct 21, 2021 · 0 comments
Open

Read corrupted zip files with more than 65535 entries #597

Nekto89 opened this issue Oct 21, 2021 · 0 comments
Labels
feature request Request for a new feature

Comments

@Nekto89
Copy link

Nekto89 commented Oct 21, 2021

Old minizip (1.1 with zip64 patch) was able to generate zip files that have more than 65535 entries without switching to zip64 mode. So result zip doesn't have ZIP64 central directory. At the same time it wasn't giving any errors and was able to fully read it afterwards. I understand that this is considered to be improper zip, but is it possible to read such files with new minizip-ng?
I had to omit format sanity check to read all entries without errors (replaced with err = MZ_OK;

err = MZ_FORMAT_ERROR;

Is there some better way? Can it be added as option? I also tried using "recover" flag but it was still giving error.
Here is an example of such file (65536 entries of empty files):
corrupted_65536_entries.zip

@nmoinvaz nmoinvaz added the feature request Request for a new feature label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants