From: Serhiy Storchaka Date: Sat, 9 Nov 2019 11:13:36 +0000 (+0200) Subject: bpo-38635: Simplify decoding the ZIP64 extra field and make it tolerant to extra... X-Git-Tag: v3.9.0a1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e27449da92b13730a5e11182f329d5da98a5e05b;p=thirdparty%2FPython%2Fcpython.git bpo-38635: Simplify decoding the ZIP64 extra field and make it tolerant to extra data. (GH-16988) --- diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 6504e0eee8b5..b0afb9da942b 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -465,44 +465,23 @@ class ZipInfo (object): if ln+4 > len(extra): raise BadZipFile("Corrupt extra field %04x (size=%d)" % (tp, ln)) if tp == 0x0001: - if ln >= 24: - counts = unpack('