]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/test/thirdparty/Fuzzer/test/InitializeTest.cpp
1 // This file is distributed under the University of Illinois Open Source
2 // License. See LICENSE.TXT for details.
4 // Make sure LLVMFuzzerInitialize is called.
14 extern "C" int LLVMFuzzerInitialize(int *argc
, char ***argv
) {
17 fprintf(stderr
, "LLVMFuzzerInitialize: %s\n", argv0
);
21 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data
, size_t Size
) {
22 if (Size
== strlen(argv0
) &&
23 !strncmp(reinterpret_cast<const char *>(Data
), argv0
, Size
)) {
24 fprintf(stderr
, "BINGO %s\n", argv0
);