[PATCH] D41193: [libFuzzer] Add dummy call of LLVMFuzzerTestOneInput to afl_driver.
Max Moroz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 14 12:28:14 PST 2017
Dor1s added inline comments.
================
Comment at: lib/fuzzer/afl/afl_driver.cpp:314
+ // on the first execution of LLVMFuzzerTestOneInput is ignored.
+ uint8_t dummy_input[1] = {0};
+ LLVMFuzzerTestOneInput(dummy_input, 1);
----------------
nit: I'd rather do:
```
uint8_t dummy_input[] = {0};
LLVMFuzzerTestOneInput(dummy_input, sizeof(dummy_input));
```
to avoid using "magic" numbers
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41193
More information about the llvm-commits
mailing list