From a789c413638669f2b1e36ebf8303746629f8bf27 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 3 Jan 2017 15:53:27 +0100 Subject: tests: added test case with invalid X.509 cert This triggers a memory leak. Issue found using oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=294 Signed-off-by: Nikos Mavrogiannopoulos --- tests/Makefile.am | 2 +- tests/certs-interesting/cert8.der | Bin 0 -> 1114 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/certs-interesting/cert8.der (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index ae92ae654c..f34e5994cb 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -36,7 +36,7 @@ EXTRA_DIST = suppressions.valgrind eagain-common.h cert-common.h test-chains.h \ certs-interesting/README.md certs-interesting/cert1.der certs-interesting/cert1.der.err \ certs-interesting/cert2.der certs-interesting/cert2.der.err certs-interesting/cert3.der \ certs-interesting/cert3.der.err certs-interesting/cert4.der certs-interesting/cert5.der \ - certs-interesting/cert6.der certs-interesting/cert7.der \ + certs-interesting/cert6.der certs-interesting/cert7.der certs-interesting/cert8.der \ certs-interesting/cert3.der.err certs-interesting/cert4.der pkcs7-interesting/pkcs7-1.der \ pkcs7-interesting/pkcs7-1.der.err pkcs7-interesting/pkcs7-2.der pkcs7-interesting/pkcs7-2.der.err \ client-interesting/client1.raw client-interesting/client2.raw client-interesting/client3.disabled diff --git a/tests/certs-interesting/cert8.der b/tests/certs-interesting/cert8.der new file mode 100644 index 0000000000..9180256ba2 Binary files /dev/null and b/tests/certs-interesting/cert8.der differ -- cgit v1.2.1