diff options
author | Francisco Facioni <fran6co@gmail.com> | 2019-05-28 23:15:11 (GMT) |
---|---|---|
committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-05-28 23:15:11 (GMT) |
commit | ab0716ed1ea2957396054730afbb80c1825f9786 (patch) | |
tree | 529b5572bc9527abd7fb858e1fc32c841d6c85ce /Lib | |
parent | 33ce3f012f249782507df896824b045b34f765aa (diff) | |
download | cpython-ab0716ed1ea2957396054730afbb80c1825f9786.zip cpython-ab0716ed1ea2957396054730afbb80c1825f9786.tar.gz cpython-ab0716ed1ea2957396054730afbb80c1825f9786.tar.bz2 |
bpo-22102: Fixes zip files with disks set to 0 (GH-5985)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 8f8cb86..5496f6e 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -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' |