Fix fuzzer signatures.
They take a const pointer. See
http://llvm.org/docs/LibFuzzer.html#building
BUG=chromium:655016
Change-Id: Id6c7584c7a875e822b1fbff72163c888d02a9f44
Reviewed-on: https://boringssl-review.googlesource.com/11580
Reviewed-by: Steven Valdez <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: Steven Valdez <svaldez@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/fuzz/privkey.cc b/fuzz/privkey.cc
index a7cd1b7..b72cf06 100644
--- a/fuzz/privkey.cc
+++ b/fuzz/privkey.cc
@@ -14,8 +14,7 @@
#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));
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
+ EVP_PKEY_free(d2i_AutoPrivateKey(NULL, &buf, len));
return 0;
}