diff options
author | van Hauser <vh@thc.org> | 2020-06-01 14:57:05 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-01 14:57:05 +0200 |
commit | adcffce0a083cf32ea41f5631ec0e9d77dfdd115 (patch) | |
tree | 845a9b7d9ab86f5de9e7417d52e2eef7b17c138d /examples | |
parent | 9a65fe904dd0895b9f7d27aae1fbce22fcb598ef (diff) | |
download | afl++-adcffce0a083cf32ea41f5631ec0e9d77dfdd115.tar.gz |
fix libfuzzer driver
Diffstat (limited to 'examples')
-rw-r--r-- | examples/aflpp_driver/aflpp_driver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aflpp_driver/aflpp_driver.cpp b/examples/aflpp_driver/aflpp_driver.cpp index a6b168cd..1feae1c3 100644 --- a/examples/aflpp_driver/aflpp_driver.cpp +++ b/examples/aflpp_driver/aflpp_driver.cpp @@ -262,14 +262,14 @@ int main(int argc, char **argv) { assert(N > 0); - // Call LLVMFuzzerTestOneInput here so that coverage caused by initialization - // on the first execution of LLVMFuzzerTestOneInput is ignored. - uint8_t dummy_input[1] = {0}; - LLVMFuzzerTestOneInput(dummy_input, 1); - // if (!getenv("AFL_DRIVER_DONT_DEFER")) __afl_manual_init(); + // Call LLVMFuzzerTestOneInput here so that coverage caused by initialization + // on the first execution of LLVMFuzzerTestOneInput is ignored. + //uint8_t dummy_input[1] = {0}; + //LLVMFuzzerTestOneInput(dummy_input, 1); + int num_runs = 0; while (__afl_persistent_loop(N)) { if (__afl_fuzz_len) { |