Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1cc98af8
Commit
1cc98af8
authored
Jan 19, 2008
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport r60116 - fix zipfile to work with archives having file
headers beyond the signed 2**31 byte boundary.
parent
c223c6cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/zipfile.py
Lib/zipfile.py
+2
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/zipfile.py
View file @
1cc98af8
...
...
@@ -32,9 +32,9 @@ ZIP_DEFLATED = 8
# Other ZIP compression methods not supported
# Here are some struct module formats for reading headers
structEndArchive
=
"<4s4H2
l
H"
# 9 items, end of archive, 22 bytes
structEndArchive
=
"<4s4H2
L
H"
# 9 items, end of archive, 22 bytes
stringEndArchive
=
"PK
\
005
\
006
"
# magic number for end of archive record
structCentralDir
=
"<4s4B4HlLL5HL
l
"
# 19 items, central directory, 46 bytes
structCentralDir
=
"<4s4B4HlLL5HL
L
"
# 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
...
...
Misc/NEWS
View file @
1cc98af8
...
...
@@ -53,6 +53,9 @@ Core and builtins
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment