summaryrefslogtreecommitdiffstats
path: root/fuzz/x509.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-02-10 17:36:57 +0100
committerMatt Caswell <matt@openssl.org>2021-02-16 12:32:32 +0100
commit55869f594f052561b11a2db6a7c42690051868de (patch)
treebb2bc551c93321e7f0d152cadbd3cd1422cd3b96 /fuzz/x509.c
parentFix Null pointer deref in X509_issuer_and_serial_hash() (diff)
downloadopenssl-55869f594f052561b11a2db6a7c42690051868de.tar.xz
openssl-55869f594f052561b11a2db6a7c42690051868de.zip
Test that X509_issuer_and_serial_hash doesn't crash
Provide a certificate with a bad issuer and check that X509_issuer_and_serial_hash doesn't crash. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org>
Diffstat (limited to 'fuzz/x509.c')
-rw-r--r--fuzz/x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/x509.c b/fuzz/x509.c
index 858ad61bbf..bf2dfb826d 100644
--- a/fuzz/x509.c
+++ b/fuzz/x509.c
@@ -37,6 +37,8 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
X509_print(bio, x509);
BIO_free(bio);
+ X509_issuer_and_serial_hash(x509);
+
i2d_X509(x509, &der);
OPENSSL_free(der);