diff options
author | van Hauser <vh@thc.org> | 2020-06-04 08:53:05 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-04 08:53:05 +0200 |
commit | 2f73215d4f24d9059546aff2b82d7eef05fbe253 (patch) | |
tree | 499c12d101614ad5f09ffa0282b96cfc152e8fb1 /examples/aflpp_driver/aflpp_driver.cpp | |
parent | 155405e0d0d896a72f44ee44909e7b95fe28f553 (diff) | |
download | afl++-2f73215d4f24d9059546aff2b82d7eef05fbe253.tar.gz |
update libfuzzer driver
Diffstat (limited to 'examples/aflpp_driver/aflpp_driver.cpp')
-rw-r--r-- | examples/aflpp_driver/aflpp_driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/aflpp_driver/aflpp_driver.cpp b/examples/aflpp_driver/aflpp_driver.cpp index f2c604da..e0a90ff9 100644 --- a/examples/aflpp_driver/aflpp_driver.cpp +++ b/examples/aflpp_driver/aflpp_driver.cpp @@ -90,7 +90,7 @@ If 1, close stdout at startup. If 2 close stderr; if 3 close both. #endif int __afl_sharedmem_fuzzing = 1; -extern unsigned int __afl_fuzz_len; +extern unsigned int *__afl_fuzz_len; extern unsigned char *__afl_fuzz_ptr; // libFuzzer interface is thin, so we don't include any libFuzzer headers. @@ -272,9 +272,9 @@ int main(int argc, char **argv) { int num_runs = 0; while (__afl_persistent_loop(N)) { - if (__afl_fuzz_len) { + if (*__afl_fuzz_len) { num_runs++; - LLVMFuzzerTestOneInput(__afl_fuzz_ptr, __afl_fuzz_len); + LLVMFuzzerTestOneInput(__afl_fuzz_ptr, *__afl_fuzz_len); } } Printf("%s: successfully executed %d input(s)\n", argv[0], num_runs); |