diff options
Diffstat (limited to 'fuzz/cert.cc')
-rw-r--r-- | fuzz/cert.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fuzz/cert.cc b/fuzz/cert.cc new file mode 100644 index 00000000..ad40a319 --- /dev/null +++ b/fuzz/cert.cc @@ -0,0 +1,7 @@ +#include <openssl/x509.h> + +extern "C" int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len) { + const uint8_t *bufp = buf; + X509_free(d2i_X509(NULL, &bufp, len)); + return 0; +} |