mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-22102: Fixes zip files with disks set to 0 (GH-5985)
This commit is contained in:
parent
33ce3f012f
commit
ab0716ed1e
2 changed files with 3 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue