LLVM
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
lib
Fuzzer
FuzzerMain.cpp
Go to the documentation of this file.
1
//===- FuzzerMain.cpp - main() function and flags -------------------------===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
// main() and flags.
10
//===----------------------------------------------------------------------===//
11
12
#include "
FuzzerInterface.h
"
13
#include "
FuzzerInternal.h
"
14
15
// This function should be defined by the user.
16
extern
"C"
void
LLVMFuzzerTestOneInput
(
const
uint8_t *Data,
size_t
Size);
17
18
int
main
(
int
argc,
char
**argv) {
19
return
fuzzer::FuzzerDriver
(argc, argv,
LLVMFuzzerTestOneInput
);
20
}
fuzzer::FuzzerDriver
int FuzzerDriver(int argc, char **argv, UserCallback Callback)
Simple C-like interface with a single user-supplied callback.
Definition:
FuzzerDriver.cpp:216
FuzzerInterface.h
LLVMFuzzerTestOneInput
void LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
Definition:
CounterTest.cpp:5
main
int main(int argc, char **argv)
Definition:
FuzzerMain.cpp:18
FuzzerInternal.h
Generated on Mon Aug 31 2015 11:00:44 for LLVM by
1.8.6