Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/cert.cc')
-rw-r--r--fuzz/cert.cc7
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;
+}