mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
ZIP64 format is required if number of entries in archive is greater than 65535.
This commit is contained in:
parent
d487d78b30
commit
3f59ffc209
@ -351,7 +351,7 @@ static int32_t mz_zip_write_cd(void *handle)
|
||||
err = mz_stream_copy(zip->stream, zip->cd_mem_stream, (int32_t)zip->cd_size);
|
||||
|
||||
// Write the ZIP64 central directory header
|
||||
if (zip->cd_offset >= UINT32_MAX || zip->number_entry > UINT32_MAX)
|
||||
if (zip->cd_offset >= UINT32_MAX || zip->number_entry > UINT16_MAX)
|
||||
{
|
||||
zip64_eocd_pos_inzip = mz_stream_tell(zip->stream);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user