You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it's again me and it's again an issue on iOS. The sequence to reproduce the problem is the following:
create a new file with zipOpen;
add a new file to the zip with zipOpenNewFileInZip3 in deflate mode;
write uncompressible (e.g.: random) data with zipWriteInFileInZip until you have written 4,294,080,000 bytes (until 4,293,387,000 bytes it works, not sure in the middle);
close the file with zipCloseFileInZip.
At this point you will get error -103 (ZIP_BADZIPFILE). The error is produced at line #1808 of zip.c, that is:
if(uncompressed_size >= 0xffffffff||compressed_size >= 0xffffffff)
{
if(zi->ci.pos_zip64extrainfo>0)
{
// Update the size in the ZIP64 extended field.// [...]
}
elseerr=ZIP_BADZIPFILE; // Caller passed zip64 = 0, so no room for zip64 info -> fatal
}
else// [...]
It seems that when compiling for iOS the library misconfigures the 64 bit I/O APIs in some way.
Best regards,
Gianluca
The text was updated successfully, but these errors were encountered:
Hello,
it's again me and it's again an issue on iOS. The sequence to reproduce the problem is the following:
At this point you will get error -103 (ZIP_BADZIPFILE). The error is produced at line #1808 of zip.c, that is:
It seems that when compiling for iOS the library misconfigures the 64 bit I/O APIs in some way.
Best regards,
Gianluca
The text was updated successfully, but these errors were encountered: