blob: 3dd0b61173057b09d44b5570af1bbb93e169393a [file] [log] [blame]
Vitaly Buka0618cba2016-06-23 02:19:36 +00001// 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.
Vitaly Bukad01720d2016-06-16 00:14:42 +00005#include <stdint.h>
6#include <stdlib.h>
7
8extern "C" void __afl_manual_init() {}
9
10extern "C" int __afl_persistent_loop(unsigned int) {
11 return 0;
12}
13
Dan Liew30ca81f2016-07-07 18:14:11 +000014// This declaration exists to prevent the Darwin linker
15// from complaining about this being a missing weak symbol.
16extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
17 return 0;
18}
19
Vitaly Bukad01720d2016-06-16 00:14:42 +000020extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
21 return 0;
22}