1c5f01b2fSopenharmony_ci// This file is distributed under the University of Illinois Open Source 2c5f01b2fSopenharmony_ci// License. See LICENSE.TXT for details. 3c5f01b2fSopenharmony_ci 4c5f01b2fSopenharmony_ci// Contains dummy functions used to avoid dependency on AFL. 5c5f01b2fSopenharmony_ci#include <stdint.h> 6c5f01b2fSopenharmony_ci#include <stdlib.h> 7c5f01b2fSopenharmony_ci 8c5f01b2fSopenharmony_ciextern "C" void __afl_manual_init() {} 9c5f01b2fSopenharmony_ci 10c5f01b2fSopenharmony_ciextern "C" int __afl_persistent_loop(unsigned int) { 11c5f01b2fSopenharmony_ci return 0; 12c5f01b2fSopenharmony_ci} 13c5f01b2fSopenharmony_ci 14c5f01b2fSopenharmony_ci// This declaration exists to prevent the Darwin linker 15c5f01b2fSopenharmony_ci// from complaining about this being a missing weak symbol. 16c5f01b2fSopenharmony_ciextern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { 17c5f01b2fSopenharmony_ci return 0; 18c5f01b2fSopenharmony_ci} 19c5f01b2fSopenharmony_ci 20c5f01b2fSopenharmony_ciextern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 21c5f01b2fSopenharmony_ci return 0; 22c5f01b2fSopenharmony_ci} 23