From 821dd3d85d7a7301f8161df4239cc678dfd475cb Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Mon, 27 Apr 2015 16:17:21 +1000 Subject: [PATCH] Add test for CVE-2002-0059 CVE-2002-0059 was a double free in inflation. [0] This makes sure we don't accidentally reintroduce it. zlib-1.1.3 was download and fuzz tested using AFL[1]. This crashing case (test.gz) was discovered, and using gdb it was confirmed to be a double free in the expected place. The test script looks for a normal error exit (status code 1), and fails if any other code is returned. [0] http://www.cvedetails.com/cve/CVE-2002-0059/ [1] http://lcamtuf.coredump.cx/afl/ Signed-off-by: Daniel Axtens --- test/CVE-2002-0059/test.gz | Bin 0 -> 4610 bytes test/Makefile.in | 5 ++++- test/testCVEinputs.sh | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 test/CVE-2002-0059/test.gz create mode 100755 test/testCVEinputs.sh diff --git a/test/CVE-2002-0059/test.gz b/test/CVE-2002-0059/test.gz new file mode 100644 index 0000000000000000000000000000000000000000..c5c3e184b1a90692f1c2dc729eb106476d231378 GIT binary patch literal 4610 zc-oWi=3oE==C>CV8G*FGf_KvY=NGq#s$EDr(7?#d#v@^nFv=KZj50