[Patches] [ python-Patches-1189216 ] zipfile module and 2G boundary
SourceForge.net
noreply at sourceforge.net
Wed Mar 28 14:02:25 CEST 2007
Patches item #1189216, was opened at 2005-04-25 04:08
Message generated for change (Settings changed) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1189216&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
>Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bob Ippolito (etrepum)
Assigned to: Nobody/Anonymous (nobody)
Summary: zipfile module and 2G boundary
Initial Comment:
The zipfile module currently can not handle archives that have file
headers that begin past the 2**31 byte boundary. This is really bug
#679953 all over again -- that fix didn't solve all of the problem.
Patch to CVS HEAD attached, backport candidate to 2.4.2 and
2.3.6.
----------------------------------------------------------------------
Comment By: Matthew Cowles (mdcowles)
Date: 2005-10-16 21:18
Message:
Logged In: YES
user_id=198518
[From a post to python-help]
Related to this is that zipfile raises an exception on creating a file
that's too big. It seems that the limitation should be documented or
removed.
This is from the message to python-help:
python version 4.2. the class zipfile in the module zipfile is unable
to .close() a file bigger than
2^32-1 (or whatever) bytes.
Traceback (most recent call last):
File "bk.py", line 12, in ?
zf.close()
File "C:\Python24\lib\zipfile.py", line 503, in close
zinfo.header_offset)
OverflowError: long int too large to convert to int
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1189216&group_id=5470
More information about the Patches
mailing list