Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unzipping file (zipped with this same package) fails #265

Open
finestructure opened this issue May 27, 2024 · 1 comment
Open

Unzipping file (zipped with this same package) fails #265

finestructure opened this issue May 27, 2024 · 1 comment

Comments

@finestructure
Copy link

I've traced this to line 369 in unzip.c where uL != ZIP64ENDLOCHEADERMAGIC is true and as a consequence unz64local_SearchCentralDir64 returns 0, leading to UNZ_BADZIPFILE in unzOpenInternal.

    /* read locator signature */
    if (unz64local_getLong(pzlib_filefunc_def, filestream, &uL) != UNZ_OK)
        return 0;
    if (uL != ZIP64ENDLOCHEADERMAGIC)
        return 0;

I can't tell if it's the zipping or the unzipping that's tripping up. I'm attaching the file (which unzips just fine in Finder, FWIW).

All this is with Zip 2.1.2

prod-apple-swift-metrics-main-e6a00d36.zip

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

No branches or pull requests

1 participant