Add stub library that just feeds files to the fuzzing target.

This will allow the fuzzers to be run as part of "make check".
This commit is contained in:
Todd C. Miller
2021-02-07 15:43:51 -07:00
parent db4ee0a903
commit 30d9497eb6
11 changed files with 287 additions and 49 deletions

View File

@@ -97,12 +97,3 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
return 0;
}
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
int
main(int argc, char *argv[])
{
/* Nothing for now. */
return LLVMFuzzerTestOneInput(NULL, 0);
}
#endif