Skip to content

Commit

Permalink
minizip: Fix decision on the emission of Zip64 end records in minizip
Browse files Browse the repository at this point in the history
This merges madler/zlib@15c45ad, which is the only minizip change we don't have yet.

I don't know how relevant it is for us, but for good measure
  • Loading branch information
Dutchman101 authored Nov 21, 2023
1 parent 812295b commit 2e74b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/zip/zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ extern int ZEXPORT zipClose(zipFile file, const char* global_comment) {
free_linkedlist(&(zi->central_dir));

pos = centraldir_pos_inzip - zi->add_position_when_writing_offset;
if(pos >= 0xffffffff || zi->number_entry > 0xFFFF)
if(pos >= 0xffffffff || zi->number_entry >= 0xFFFF)
{
ZPOS64_T Zip64EOCDpos = ZTELL64(zi->z_filefunc,zi->filestream);
Write_Zip64EndOfCentralDirectoryRecord(zi, size_centraldir, centraldir_pos_inzip);
Expand Down

0 comments on commit 2e74b23

Please sign in to comment.