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

unzOpenInternal() return UNZ_BADZIPFILE #825

Open
cracy3m opened this issue Jun 25, 2023 · 2 comments
Open

unzOpenInternal() return UNZ_BADZIPFILE #825

cracy3m opened this issue Jun 25, 2023 · 2 comments

Comments

@cracy3m
Copy link

cracy3m commented Jun 25, 2023

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
Copy link

@gvollant: Can you look?

@Neustradamus
Copy link

@madler: Can you look this ticket?

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

No branches or pull requests

2 participants