mirror of https://github.com/python/cpython.git
bpo-22102: Fixes zip files with disks set to 0 (GH-5985)
This commit is contained in:
parent
33ce3f012f
commit
ab0716ed1e
|
@ -226,7 +226,7 @@ def _EndRecData64(fpin, offset, endrec):
|
||||||
if sig != stringEndArchive64Locator:
|
if sig != stringEndArchive64Locator:
|
||||||
return endrec
|
return endrec
|
||||||
|
|
||||||
if diskno != 0 or disks != 1:
|
if diskno != 0 or disks > 1:
|
||||||
raise BadZipFile("zipfiles that span multiple disks are not supported")
|
raise BadZipFile("zipfiles that span multiple disks are not supported")
|
||||||
|
|
||||||
# Assume no 'zip64 extensible data'
|
# Assume no 'zip64 extensible data'
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
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.
|
Loading…
Reference in New Issue