Skip to content

Commit

Permalink
issue zlib-ng#596
Browse files Browse the repository at this point in the history
  • Loading branch information
ponapalt committed Jun 24, 2022
1 parent acc110d commit f8d2ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ extern int ZEXPORT zipClose2_64(zipFile file, const char *global_comment, uint16
pos = centraldir_pos_inzip - zi->add_position_when_writting_offset;

/* Write the ZIP64 central directory header */
if (pos >= UINT32_MAX || zi->number_entry > UINT16_MAX)
if (pos >= UINT32_MAX || zi->number_entry >= UINT16_MAX)
{
uint64_t zip64_eocd_pos_inzip = ZTELL64(zi->z_filefunc, zi->filestream);
uint32_t zip64_datasize = 44;
Expand Down

0 comments on commit f8d2ba7

Please sign in to comment.