diff options
author | Matt Caswell <matt@openssl.org> | 2021-02-10 16:36:57 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-02-16 11:34:03 +0000 |
commit | df1defb809df14bf7ff7aab8532f6e4a7a5235cf (patch) | |
tree | 4e9af8526ff710cca08150d640815bbff70a05b1 | |
parent | 122a19ab48091c657f7cb1fb3af9fc07bd557bbf (diff) | |
download | openssl-new-df1defb809df14bf7ff7aab8532f6e4a7a5235cf.tar.gz |
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>
(cherry picked from commit 55869f594f052561b11a2db6a7c42690051868de)
-rw-r--r-- | fuzz/corpora/x509/f5ded9e25448f6f47349d012eda2eb4fccbc7c76 | bin | 0 -> 356852 bytes | |||
-rw-r--r-- | fuzz/x509.c | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/corpora/x509/f5ded9e25448f6f47349d012eda2eb4fccbc7c76 b/fuzz/corpora/x509/f5ded9e25448f6f47349d012eda2eb4fccbc7c76 Binary files differnew file mode 100644 index 0000000000..439c50b013 --- /dev/null +++ b/fuzz/corpora/x509/f5ded9e25448f6f47349d012eda2eb4fccbc7c76 diff --git a/fuzz/x509.c b/fuzz/x509.c index 926287da48..1a20ca21db 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); |