1 //===- FuzzerMain.cpp - main() function and flags -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
12 #include "FuzzerInterface.h"
13 #include "FuzzerInternal.h"
15 // This function should be defined by the user.
16 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
18 int main(int argc, char **argv) {
19 return fuzzer::FuzzerDriver(argc, argv, LLVMFuzzerTestOneInput);