LLVM  6.0.0svn
FuzzerMain.cpp
Go to the documentation of this file.
1 //===- FuzzerMain.cpp - main() function and flags -------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 // main() and flags.
10 //===----------------------------------------------------------------------===//
11 
12 #include "FuzzerDefs.h"
13 
14 extern "C" {
15 // This function should be defined by the user.
16 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
17 } // extern "C"
18 
19 int main(int argc, char **argv) {
20  return fuzzer::FuzzerDriver(&argc, &argv, LLVMFuzzerTestOneInput);
21 }
int FuzzerDriver(int *argc, char ***argv, UserCallback Callback)
char *** argv
Definition: afl_driver.cpp:92
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
int main(int argc, char **argv)
Definition: FuzzerMain.cpp:19
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)