Add dummy call of LLVMFuzzerTestOneInput to afl_driver before it starts
executing on actual inputs. Do this so that first time initialization
performed by LLVMFuzzerTestOneInput is not considered code covered by
a particular input.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
lib/fuzzer/afl/afl_driver.cpp | ||
---|---|---|
314 | nit: I'd rather do: uint8_t dummy_input[] = {0}; LLVMFuzzerTestOneInput(dummy_input, sizeof(dummy_input)); to avoid using "magic" numbers |
nit: I'd rather do:
to avoid using "magic" numbers