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 __afl_manual_init()8extern "C" void __afl_manual_init() {} 9 __afl_persistent_loop(unsigned int)10extern "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. LLVMFuzzerInitialize(int * argc,char *** argv)16extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { 17 return 0; 18 } 19 LLVMFuzzerTestOneInput(const uint8_t * Data,size_t Size)20extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 21 return 0; 22 } 23