From 9b314864f437102eb2a2ccb616f42521aede33d2 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Sun, 4 Feb 2018 23:32:23 +0100 Subject: [PATCH] CVE 5977 fix complete --- test/zziptests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/zziptests.py b/test/zziptests.py index ca58bc8..853eeee 100644 --- a/test/zziptests.py +++ b/test/zziptests.py @@ -1368,7 +1368,6 @@ class ZZipTest(unittest.TestCase): self.assertLess(len(errors(run.errors)), 1) self.assertEqual(os.path.getsize(tmpdir+"/test"), 0) self.rm_testdir() - @unittest.expectedFailure def test_59777_zzipext_mem_CVE_2017_5977(self): """ run unzzip-mem $(CVE_2017_5977).zip """ tmpdir = self.testdir() @@ -1379,8 +1378,7 @@ class ZZipTest(unittest.TestCase): run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()), returncodes = [0]) self.assertLess(len(run.output), 30) - self.assertLess(len(errors(run.errors)), 1) - self.assertEqual(os.path.getsize(tmpdir+"/test"), 0) + self.assertEqual(os.path.getsize(tmpdir+"/test"), 3) self.rm_testdir() def test_59778_zzipext_mix_CVE_2017_5977(self): """ run unzzip-mix $(CVE_2017_5977).zip """ -- 2.40.0