LLVM  5.0.0
BogusInitializeTest.cpp
Go to the documentation of this file.
1 // This file is distributed under the University of Illinois Open Source
2 // License. See LICENSE.TXT for details.
3 
4 // Make sure LLVMFuzzerInitialize does not change argv[0].
5 #include <stddef.h>
6 #include <stdint.h>
7 
8 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
9  ***argv = 'X';
10  return 0;
11 }
12 
13 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
14  return 0;
15 }
int LLVMFuzzerInitialize(int *argc, char ***argv)
char *** argv
Definition: afl_driver.cpp:92
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)