[Python-checkins] r60117 - in python/branches/release25-maint: Lib/zipfile.py Misc/NEWS

gregory.p.smith python-checkins at python.org
Sun Jan 20 00:16:02 CET 2008


Author: gregory.p.smith
Date: Sun Jan 20 00:16:01 2008
New Revision: 60117
Modified:
 python/branches/release25-maint/Lib/zipfile.py
 python/branches/release25-maint/Misc/NEWS
Log:
backport r60116 - fix zipfile to work with archives having file
headers beyond the signed 2**31 byte boundary.
Modified: python/branches/release25-maint/Lib/zipfile.py
==============================================================================
--- python/branches/release25-maint/Lib/zipfile.py	(original)
+++ python/branches/release25-maint/Lib/zipfile.py	Sun Jan 20 00:16:01 2008
@@ -32,9 +32,9 @@
 # Other ZIP compression methods not supported
 
 # Here are some struct module formats for reading headers
-structEndArchive = "<4s4H2lH" # 9 items, end of archive, 22 bytes
+structEndArchive = "<4s4H2LH" # 9 items, end of archive, 22 bytes
 stringEndArchive = "PK005円006円" # magic number for end of archive record
-structCentralDir = "<4s4B4HlLL5HLl"# 19 items, central directory, 46 bytes
+structCentralDir = "<4s4B4HlLL5HLL"# 19 items, central directory, 46 bytes
 stringCentralDir = "PK001円002円" # magic number for central directory
 structFileHeader = "<4s2B4HlLL2H" # 12 items, file header record, 30 bytes
 stringFileHeader = "PK003円004円" # magic number for file header
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS	(original)
+++ python/branches/release25-maint/Misc/NEWS	Sun Jan 20 00:16:01 2008
@@ -53,6 +53,9 @@
 Library
 -------
 
+- #1189216: Fix the zipfile module to work on archives with headers
+ past the 2**31 byte boundary.
+
 - Issue #1336: fix a race condition in subprocess.Popen if the garbage
 collector kicked in at the wrong time that would cause the process
 to hang when the child wrote to stderr.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /