2015-01-29 17:58:29 +01:00
|
|
|
//===- 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.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-09-21 03:50:50 +02:00
|
|
|
#include "FuzzerDefs.h"
|
2015-01-29 17:58:29 +01:00
|
|
|
|
2016-01-16 02:23:12 +01:00
|
|
|
extern "C" {
|
2015-02-19 19:45:37 +01:00
|
|
|
// This function should be defined by the user.
|
2016-01-16 02:23:12 +01:00
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
|
|
|
|
} // extern "C"
|
2015-01-31 02:14:40 +01:00
|
|
|
|
2015-01-29 17:58:29 +01:00
|
|
|
int main(int argc, char **argv) {
|
2016-06-02 07:48:02 +02:00
|
|
|
return fuzzer::FuzzerDriver(&argc, &argv, LLVMFuzzerTestOneInput);
|
2015-01-29 17:58:29 +01:00
|
|
|
}
|