madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.46k stars 2.41k forks source link

Files bigger than 4 gb? #954

Closed UltraEngine closed 3 months ago

UltraEngine commented 3 months ago

Before I move my code over to this library, can you confirm that this library and the included version of minizip will support zip files that contain archives bigger than 4 gb in size?

madler commented 3 months ago

zlib doesn't know anything about zip files, and has always supported the compression and decompression of any size input.

It is my understanding that minizip is designed to support the Zip64 format, which would include zip files larger than 4GB, uncompressed zip file entries larger than 4GB, and zip files with more than 65,535 entries. As far as I know it works. However I cannot vouch for that code, as it is not mine. The code in contrib is not part of zlib, and is provided as a courtesy. You can contact the author, Gilles Vollant @gvollant, for more information.

I would say though that no degree of promises or affirmations from the authors of any code should take the place of your own testing of said code in your application.