]> granicus.if.org Git - zziplib/commitdiff
test_65427 should reproduce CVE-2918-6542 but it is ok
authorGuido Draheim <guidod@gmx.de>
Sun, 4 Feb 2018 22:48:13 +0000 (23:48 +0100)
committerGuido Draheim <guidod@gmx.de>
Sun, 4 Feb 2018 22:48:13 +0000 (23:48 +0100)
test/zziptests.py

index c04fd2e221409da5344e2961de8433ee406dbcaa..228d6e16c524e3be944e837bab6ca5b581a97ee2 100644 (file)
@@ -3295,6 +3295,8 @@ class ZZipTest(unittest.TestCase):
     file_url = self.url_CVE_2018_17
     download(file_url, filename, tmpdir)
     exe = self.bins("unzzip-mem")
+    run = shell("cd {tmpdir} && ../{exe} -p {filename} ".format(**locals()),
+        returncodes = [0])
     run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
         returncodes = [0])
     self.assertLess(len(run.output), 30)