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
ab0716ed
Commit
ab0716ed
authored
May 29, 2019
by
Francisco Facioni
Committed by
Cheryl Sabella
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-22102: Fixes zip files with disks set to 0 (GH-5985)
parent
33ce3f01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/zipfile.py
Lib/zipfile.py
+1
-1
Misc/NEWS.d/next/Library/2018-03-08-16-15-00.bpo-22102.th33uD.rst
...S.d/next/Library/2018-03-08-16-15-00.bpo-22102.th33uD.rst
+2
-0
No files found.
Lib/zipfile.py
View file @
ab0716ed
...
...
@@ -226,7 +226,7 @@ def _EndRecData64(fpin, offset, endrec):
if
sig
!=
stringEndArchive64Locator
:
return
endrec
if
diskno
!=
0
or
disks
!=
1
:
if
diskno
!=
0
or
disks
>
1
:
raise
BadZipFile
(
"zipfiles that span multiple disks are not supported"
)
# Assume no 'zip64 extensible data'
...
...
Misc/NEWS.d/next/Library/2018-03-08-16-15-00.bpo-22102.th33uD.rst
0 → 100644
View file @
ab0716ed
Added support for ZIP files with disks set to 0. Such files are commonly created by builtin tools on Windows when use ZIP64 extension.
Patch by Francisco Facioni.
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