Skip to content
Snippets Groups Projects
Commit 0c4f0dd4 authored by vanhauser-thc's avatar vanhauser-thc
Browse files

oss-fuzz fix for LLVMFuzzerTestOneInput driver

parent b5f7f42c
Branches
Tags
No related merge requests found
......@@ -74,7 +74,10 @@ extern unsigned char *__afl_area_ptr;
extern unsigned int __afl_map_size;
// libFuzzer interface is thin, so we don't include any libFuzzer headers.
__attribute__((weak)) int LLVMFuzzerTestOneInput(const uint8_t *Data,
/* Using the weak attributed on LLVMFuzzerTestOneInput() breaks oss-fuzz but
on the other hand this is what Google needs to make LLVMFuzzerRunDriver()
work. Choose your poison Google! */
/*__attribute__((weak))*/ int LLVMFuzzerTestOneInput(const uint8_t *Data,
size_t Size);
__attribute__((weak)) int LLVMFuzzerInitialize(int *argc, char ***argv);
__attribute__((weak)) int LLVMFuzzerRunDriver(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment