diff options
Diffstat (limited to 'lib/Fuzzer/FuzzerMain.cpp')
-rw-r--r-- | lib/Fuzzer/FuzzerMain.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Fuzzer/FuzzerMain.cpp b/lib/Fuzzer/FuzzerMain.cpp new file mode 100644 index 0000000..d0c3df3 --- /dev/null +++ b/lib/Fuzzer/FuzzerMain.cpp @@ -0,0 +1,20 @@ +//===- FuzzerMain.cpp - main() function and flags -------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// main() and flags. +//===----------------------------------------------------------------------===// + +#include "FuzzerInterface.h" +#include "FuzzerInternal.h" + +// This function should be defined by the user. +extern "C" void TestOneInput(const uint8_t *Data, size_t Size); + +int main(int argc, char **argv) { + return fuzzer::FuzzerDriver(argc, argv, TestOneInput); +} |