2020-01-16 16:38:04 +00:00
|
|
|
//===- FuzzerMain.cpp - main() function and flags -------------------------===//
|
2019-07-26 19:53:28 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2020-01-16 16:38:04 +00:00
|
|
|
// main() and flags.
|
2019-07-26 19:53:28 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2020-01-16 16:38:04 +00:00
|
|
|
#include "FuzzerDefs.h"
|
2019-07-26 19:53:28 +00:00
|
|
|
|
2020-01-16 16:38:04 +00:00
|
|
|
extern "C" {
|
|
|
|
// This function should be defined by the user.
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
|
|
|
|
} // extern "C"
|
2019-07-26 19:53:28 +00:00
|
|
|
|
2020-01-16 16:38:04 +00:00
|
|
|
int main(int argc, char **argv) {
|
|
|
|
return fuzzer::FuzzerDriver(&argc, &argv, LLVMFuzzerTestOneInput);
|
2019-07-26 19:53:28 +00:00
|
|
|
}
|