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
190 B
C++
8 lines
190 B
C++
#include <openssl/evp.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len) {
|
|
const uint8_t *bufp = buf;
|
|
EVP_PKEY_free(d2i_AutoPrivateKey(NULL, &bufp, len));
|
|
return 0;
|
|
}
|