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 Dec 21, 2021
1 parent d5632cc commit 79d4fa7
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 @@ -1913,7 +1913,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 79d4fa7

Please sign in to comment.