Add “const” to |SSL_SESSION| fuzzer.

(Found by UBSAN.)

Change-Id: Ia11d5edc3c6dd7ac9a05a181ed649a4da2f278b8
This commit is contained in:
Adam Langley 2017-02-06 09:37:05 -08:00
parent 58966a455f
commit b7d53ba268

View File

@ -17,7 +17,7 @@
#include <openssl/mem.h>
#include <openssl/ssl.h>
extern "C" int LLVMFuzzerTestOneInput(uint8_t *buf, size_t len) {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) {
// Parse in our session.
bssl::UniquePtr<SSL_SESSION> session(SSL_SESSION_from_bytes(buf, len));