grpc
third_party
boringssl-with-bazel
src
fuzz
privkey.cc
Go to the documentation of this file.
1
/* Copyright (c) 2016, Google Inc.
2
*
3
* Permission to use, copy, modify, and/or distribute this software for any
4
* purpose with or without fee is hereby granted, provided that the above
5
* copyright notice and this permission notice appear in all copies.
6
*
7
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
14
15
#include <
openssl/err.h
>
16
#include <
openssl/evp.h
>
17
18
extern
"C"
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
buf
,
size_t
len
) {
19
EVP_PKEY_free
(
d2i_AutoPrivateKey
(NULL, &
buf
,
len
));
20
ERR_clear_error
();
21
return
0;
22
}
LLVMFuzzerTestOneInput
int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
Definition:
privkey.cc:18
evp.h
buf
voidpf void * buf
Definition:
bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
uint8_t
unsigned char uint8_t
Definition:
stdint-msvc2008.h:78
d2i_AutoPrivateKey
#define d2i_AutoPrivateKey
Definition:
boringssl_prefix_symbols.h:2961
EVP_PKEY_free
#define EVP_PKEY_free
Definition:
boringssl_prefix_symbols.h:1625
err.h
ERR_clear_error
#define ERR_clear_error
Definition:
boringssl_prefix_symbols.h:1413
len
int len
Definition:
abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:45