2017-09-02 01:02:22 +08:00
|
|
|
//===--- DummyFuzzerMain.cpp - Entry point to sanity check the fuzzer -----===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Implementation of main so we can build and test without linking libFuzzer.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2017-09-03 07:43:04 +08:00
|
|
|
#include "llvm/FuzzMutate/FuzzerCLI.h"
|
2017-09-02 01:02:22 +08:00
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
|
2017-09-02 03:37:49 +08:00
|
|
|
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
|
2017-09-02 01:02:22 +08:00
|
|
|
int main(int argc, char *argv[]) {
|
2017-09-03 07:43:04 +08:00
|
|
|
return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
|
|
|
|
LLVMFuzzerInitialize);
|
2017-09-02 01:02:22 +08:00
|
|
|
}
|