Vitaly Buka | 0618cba | 2016-06-23 02:19:36 +0000 | [diff] [blame] | 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. |
Vitaly Buka | d01720d | 2016-06-16 00:14:42 +0000 | [diff] [blame] | 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 | |
Dan Liew | 30ca81f | 2016-07-07 18:14:11 +0000 | [diff] [blame] | 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 | |
Vitaly Buka | d01720d | 2016-06-16 00:14:42 +0000 | [diff] [blame] | 20 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { |
| 21 | return 0; |
| 22 | } |