LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
lib
Fuzzer
test
AFLDriverTest.cpp
Go to the documentation of this file.
1
// This file is distributed under the University of Illinois Open Source
2
// License. See LICENSE.TXT for details.
3
4
// Contains dummy functions used to avoid dependency on AFL.
5
#include <stdint.h>
6
#include <stdlib.h>
7
8
extern
"C"
void
__afl_manual_init
() {}
9
10
extern
"C"
int
__afl_persistent_loop
(
unsigned
int
) {
11
return
0;
12
}
13
14
// This declaration exists to prevent the Darwin linker
15
// from complaining about this being a missing weak symbol.
16
extern
"C"
int
LLVMFuzzerInitialize
(
int
*argc,
char
***
argv
) {
17
return
0;
18
}
19
20
extern
"C"
int
LLVMFuzzerTestOneInput
(
const
uint8_t *Data,
size_t
Size) {
21
return
0;
22
}
__afl_manual_init
void __afl_manual_init()
Definition:
AFLDriverTest.cpp:8
LLVMFuzzerTestOneInput
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
Definition:
AFLDriverTest.cpp:20
__afl_persistent_loop
int __afl_persistent_loop(unsigned int)
Definition:
AFLDriverTest.cpp:10
argv
char *** argv
Definition:
afl_driver.cpp:87
LLVMFuzzerInitialize
int LLVMFuzzerInitialize(int *argc, char ***argv)
Definition:
AFLDriverTest.cpp:16
Generated on Wed Mar 8 2017 17:05:29 for LLVM by
1.8.6