Runs a fuzz target on the inputs specified on the command line.
Declared in <llvm/FuzzMutate/FuzzerCLI.h>
int
runFuzzerOnInputs(
int ArgC,
char* ArgV[],
FuzzerTestFun TestOne,
FuzzerInitFun Init = [](int *, char ***) { return 0; });
Useful for testing fuzz targets without linking to libFuzzer. Finds inputs in the argument list in a libFuzzer compatible way.
Zero on success, or a non-zero exit code on initialization or I/O failure.
| Name | Description |
|---|---|
| ArgC | Argument count from the process command line. |
| ArgV | Argument vector from the process command line. |
| TestOne | Callback invoked once per input file with its contents. |
| Init | Optional initialization callback, run before any inputs. |