Skip to content

Read corrupted zip files with more than 65535 entries #597

@Nekto89

Description

@Nekto89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions