mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
d00dce5dca
FuzzMutate might not be the best place for these, but it makes more sense than an entirely new library for now. This will make setting up fuzz targets with consistent CLI handling easier. llvm-svn: 312425
22 lines
844 B
C++
22 lines
844 B
C++
//===--- 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/FuzzMutate/FuzzerCLI.h"
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);
|
|
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv);
|
|
int main(int argc, char *argv[]) {
|
|
return llvm::runFuzzerOnInputs(argc, argv, LLVMFuzzerTestOneInput,
|
|
LLVMFuzzerInitialize);
|
|
}
|