diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-03-19 18:31:40 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-03-19 19:54:34 +0100 |
commit | 867ab6cff48348ce4d089f914924685534e94828 (patch) | |
tree | 7e6d9213e6f06f98a84d3b218434cd1a6d24b3a2 | |
parent | 100afec741777ee13b057577f36a685752ab5287 (diff) | |
download | gnutls-867ab6cff48348ce4d089f914924685534e94828.tar.gz |
tests: moved invalid-cert reproducer into fuzz/ reproducers
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | fuzz/gnutls_x509_parser_fuzzer.repro/crash-c6a115727da400db85941e32cbaa1b65316744a9 (renamed from tests/suite/invalid-cert.der) | bin | 687 -> 687 bytes | |||
-rw-r--r-- | tests/suite/Makefile.am | 2 | ||||
-rwxr-xr-x | tests/suite/invalid-cert.sh | 42 |
3 files changed, 1 insertions, 43 deletions
diff --git a/tests/suite/invalid-cert.der b/fuzz/gnutls_x509_parser_fuzzer.repro/crash-c6a115727da400db85941e32cbaa1b65316744a9 Binary files differindex 3556e6f873..3556e6f873 100644 --- a/tests/suite/invalid-cert.der +++ b/fuzz/gnutls_x509_parser_fuzzer.repro/crash-c6a115727da400db85941e32cbaa1b65316744a9 diff --git a/tests/suite/Makefile.am b/tests/suite/Makefile.am index 4b39da6f0f..90ac5d00ae 100644 --- a/tests/suite/Makefile.am +++ b/tests/suite/Makefile.am @@ -86,7 +86,7 @@ nodist_libecore_la_SOURCES = ecore/src/lib/ecore_anim.c \ EXTRA_DIST += testcompat-main-polarssl testcompat-main-openssl testcompat-common -nodist_check_SCRIPTS = chain.sh invalid-cert.sh \ +nodist_check_SCRIPTS = chain.sh \ testrng.sh testcompat-polarssl.sh testcompat-openssl.sh \ testrandom.sh tls-fuzzer/tls-fuzzer-nocert.sh \ tls-fuzzer/tls-fuzzer-cert.sh tls-fuzzer/tls-fuzzer-alpn.sh diff --git a/tests/suite/invalid-cert.sh b/tests/suite/invalid-cert.sh deleted file mode 100755 index a13bf883e2..0000000000 --- a/tests/suite/invalid-cert.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2006-2008, 2010, 2012 Free Software Foundation, Inc. -# -# Author: Simon Josefsson -# -# This file is part of GnuTLS. -# -# GnuTLS is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 3 of the License, or (at -# your option) any later version. -# -# GnuTLS is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GnuTLS; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -srcdir="${srcdir:-.}" -CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}" - -if ! test -x "${CERTTOOL}"; then - exit 77 -fi - -if ! test -z "${VALGRIND}"; then - VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}" -fi - -${VALGRIND} "${CERTTOOL}" --certificate-info --inder --infile "${srcdir}/invalid-cert.der" 2>/dev/null -rc=$? - -# We're done. -if test "${rc}" != "1"; then - exit ${rc} -fi - -exit 0 |