[New-bugs-announce] [issue44067] Zipfile lib overwrites the extra field during closing when the archive size is more then ZIP64_LIMIT
report at bugs.python.org
Fri May 7 04:18:55 EDT 2021
New submission from AMRIT RAI <shaanbhaya at gmail.com>:
The current zipFile implementation supports the allowZip64,which can make large zip files.
There is a bug in the current implementation of close method ,where the extra field is overwritten .
To reproduce it :
1.Create a directory with more then 4 GB of data(spread over many files).
2.Make the zip of those files using the any rar achiever which adds NTFS metadata(mtime,atime and ctime) of files in the zip.
3.Apped a new file to the zip using the zip library .
When i open the zip again ,the files processed after the ZIP64_LIMIT is reached will have there extra fields overwritten.
I have attached the zip which contained the python used to add the new file, and the images of zip archive before adding new files and after.
components: Library (Lib)
title: Zipfile lib overwrites the extra field during closing when the archive size is more then ZIP64_LIMIT
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50025/zip_bug.zip
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce