9a4beb8ad8
This change adds fuzzing tests for: ∙ Certificate parsing ∙ Private key parsing ∙ ClientHello parsing ∙ Server first flow (ServerHello, Certificate, etc) parsing. Change-Id: I5f53282263eaaff69b1a03c819cca73750433653 Reviewed-on: https://boringssl-review.googlesource.com/6460 Reviewed-by: Adam Langley <agl@google.com>
8 lines
177 B
C++
8 lines
177 B
C++
#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;
|
|
}
|