This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author segfault42
Recipients segfault42
Date 2009-07-07.17:10:49
SpamBayes Score 5.8036192e-05
Marked as misclassified No
Message-id <1246986659.26.0.972556799924.issue6434@psf.upfronthosting.co.za>
In-reply-to
Content
Hello, 

I have a problem with the librairy zipfile.py
http://svn.python.org/view/python/trunk/Lib/zipfile.py?revision=73565&view=markup


Zinfo structure limit the size of a file to an int max value with the
ZIP64_LIMIT value ( equal to "(1 << 31) - 1 " so to 2147483647 . 

The problem is happening when you write a big file in the line 1095 : 

self.fp.write(struct.pack("<lLL", zinfo.CRC, zinfo.compress_size,
                 zinfo.file_size))

zinfo.file_size is limited to a int  size and if you have a file bigger
than ZIP64_LIMIT you make a buffer overflow even if you set the flag
allowZip64 to true.
History
Date User Action Args
2009-07-07 17:10:59segfault42setrecipients: + segfault42
2009-07-07 17:10:59segfault42setmessageid: <1246986659.26.0.972556799924.issue6434@psf.upfronthosting.co.za>
2009-07-07 17:10:57segfault42linkissue6434 messages
2009-07-07 17:10:57segfault42create