From de905d4b48269a5bbc069da5e7476ffd798b7edb Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 13 Aug 2018 22:13:11 +0000 Subject: fuzz_tests: use __AFL_INIT when available alleged to speed things up --- tests/fuzz/fuzzer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/fuzz/fuzzer.cpp b/tests/fuzz/fuzzer.cpp index b81bf80fe..032ff049a 100644 --- a/tests/fuzz/fuzzer.cpp +++ b/tests/fuzz/fuzzer.cpp @@ -52,6 +52,10 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer) return 1; } +#ifdef __AFL_HAVE_MANUAL_CONTROL + __AFL_INIT(); +#endif + int ret = fuzzer.init(); if (ret) return ret; -- cgit v1.2.3