Commit ab0716ed authored by Francisco Facioni's avatar Francisco Facioni Committed by Cheryl Sabella

bpo-22102: Fixes zip files with disks set to 0 (GH-5985)

parent 33ce3f01
......@@ -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'
......
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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment