madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.71k stars 2.45k forks source link

unzOpenInternal() return UNZ_BADZIPFILE #825

Open cracy3m opened 1 year ago

cracy3m commented 1 year ago

I was tried to use contrib/minizip to unzip a zip archive which generated by contrib/minizip/minizip.c demo, but unzOpen2_64() return NULL; I found unz64local_SearchCentralDir64() return 0 and unzOpenInternal() return UNZ_BADZIPFILE when traced in unzOpen2_64() at here:

/** unzip.c */
717:        if ((number_entry_CD!=us.gi.number_entry) ||
718:            (number_disk_with_CD!=0) ||
719:            (number_disk!=0))
720:            err=UNZ_BADZIPFILE;

Can any one help? thanks.

Neustradamus commented 1 year ago

@gvollant: Can you look?

Neustradamus commented 9 months ago

@madler: Can you look this ticket?