]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove CVE testing from configure script.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 9 Apr 2022 20:43:53 +0000 (13:43 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 27 Apr 2022 08:37:51 +0000 (10:37 +0200)
.gitattributes
test/Makefile.in
test/testCVEinputs.sh [deleted file]

index 3b35744b027a6095fded4ba8fc7b4d6dcaa332a0..49d4490d70b87e0c0a15f374b4c7c4216898c6df 100644 (file)
@@ -3,4 +3,3 @@
 *.h text
 Makefile text
 configure text eol=lf
-testCVEinputs.sh text eol=lf
index 119eb6802eb7b78285da6eb203f6a58e7f03bf86..4cd1399ec5ceff5eb35b22307d5322e87fa59877 100644 (file)
@@ -13,7 +13,7 @@ TEST_LDFLAGS=-L.. ../$(LIBNAME).a
 QEMU_RUN=
 QEMU_VER:=$(shell command -v $(QEMU_RUN) --version 2> /dev/null)
 
-all: oldtests cvetests ghtests
+all: oldtests ghtests
 
 oldtests: #set by ../configure
 check_cross_dep:
@@ -49,11 +49,6 @@ testshared: check_cross_dep
        fi; \
        rm -f $$TMPSH $$HELLOSH
 
-cvetests: testCVEinputs
-
-testCVEinputs: check_cross_dep
-       @EXE=$(EXE) QEMU_RUN="${QEMU_RUN}" $(SRCDIR)/testCVEinputs.sh
-
 .PHONY: ghtests
 ghtests: testGH-361 testGH-364 testGH-751 testGH-1235
 
diff --git a/test/testCVEinputs.sh b/test/testCVEinputs.sh
deleted file mode 100755 (executable)
index 84f6b31..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-TESTDIR="$(dirname "$0")"
-
-# check for QEMU if QEMU_RUN is set
-if [ ! -z "${QEMU_RUN}" ]; then
-    QEMU_VERSION=$(${QEMU_RUN} --version 2> /dev/null)
-    if [ -z "${QEMU_VERSION}" ]; then
-        echo "**** You need QEMU to run tests on non-native platform"
-        exit 1
-    fi
-fi
-
-CVEs="CVE-2002-0059 CVE-2004-0797 CVE-2005-1849 CVE-2005-2096"
-
-for CVE in $CVEs; do
-    fail=0
-    for testcase in ${TESTDIR}/${CVE}/*.gz; do
-    ${QEMU_RUN} ../minigzip${EXE} -d < "$testcase"
-    # we expect that a 1 error code is OK
-    # for a vulnerable failure we'd expect 134 or similar
-    if [ $? -ne 1 ] && [ $? -ne 0 ]; then
-        fail=1
-    fi
-    done
-    if [ $fail -eq 0 ]; then
-    echo "          --- zlib not vulnerable to $CVE ---";
-    else
-    echo "          --- zlib VULNERABLE to $CVE ---"; exit 1;
-    fi
-done