summaryrefslogtreecommitdiff
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-01-19 23:16:01 +0000
committerGregory P. Smith <greg@mad-scientist.com>2008-01-19 23:16:01 +0000
commit1cc98af8a1b6689e05f94938ca3a607dccee9e4c (patch)
tree6ee6fe20fde535a84ba778d11b4723b2bfd7a6b5 /Lib/zipfile.py
parentc223c6cb413880842bf396153c237dd7f6eb619c (diff)
downloadcpython-git-1cc98af8a1b6689e05f94938ca3a607dccee9e4c.tar.gz
backport r60116 - fix zipfile to work with archives having file
headers beyond the signed 2**31 byte boundary.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 3c7b431015..ad25d5a43b 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -32,9 +32,9 @@ ZIP_DEFLATED = 8
# 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 = "PK\005\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 = "PK\001\002" # magic number for central directory
structFileHeader = "<4s2B4HlLL2H" # 12 items, file header record, 30 bytes
stringFileHeader = "PK\003\004" # magic number for file header