commit | 6038ac5ce113d54589c18a8c8d3fa35dd285dc8d | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Wed Aug 25 11:13:17 2021 -0400 |
committer | David Benjamin <davidben@google.com> | Wed Aug 25 18:13:11 2021 +0000 |
tree | eea11788f993dda24cd0f3b8a2c9ec14b75a555b | |
parent | cdfc2595bc330ba284216b9fde5b8ed06e17604d [diff] |
Run X509_print in the certificate fuzzer. Given the error handling issues in the previous CL, we'll probably be chasing down bugs in there for a while. Change-Id: I7a219e0fe2496f602d38b4bd0fcd5585ebd72cb7 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/49046 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/fuzz/cert.cc b/fuzz/cert.cc index 0bfcac4..79e1456 100644 --- a/fuzz/cert.cc +++ b/fuzz/cert.cc
@@ -26,6 +26,10 @@ uint8_t *der = NULL; i2d_X509(x509, &der); OPENSSL_free(der); + + BIO *bio = BIO_new(BIO_s_mem()); + X509_print(bio, x509); + BIO_free(bio); } X509_free(x509); ERR_clear_error();