zip_source_filep_create
fails on Windows with a large zip archive
#451
Labels
bug
libzip doesn't behave as expected.
Describe the Bug
zip_source_filep_create
fails on Windows when the size of zip archive is greater than ~2.14GB (== INT_MAX).Expected Behavior
zip_source_filep_create
and subsequentzip_open_from_source
should be able to handle 2.14GB+ size archive on Windows.The same archive can be opened via
zip_open
on Windows.Observed Behavior
zip_source_filep_create
fails with ZIP_ER_READ.To Reproduce
On Windows, execute
zip_source_filep_create
with the file descriptor obtained for the large file.libzip Version
v1.10.1 and also the tip of main
Operating System
Windows
Test Files
Any archive with size > 2.14GB.
Additional context
I'll follow up with a PR with a suggestion on how to address this limitation.
The text was updated successfully, but these errors were encountered: