aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-14 12:44:47 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-14 12:44:47 +0200
commit885d3d5a99e8e532fe42175bf58bcb8cca7773a0 (patch)
treeb731783dfb0ad27a38718fd55bbd096673053b6a /tests
parentMerge pull request #4251 (diff)
parentfuzz_tests: use __AFL_INIT when available (diff)
downloadmonero-885d3d5a99e8e532fe42175bf58bcb8cca7773a0.tar.xz
Merge pull request #4254
de905d4b fuzz_tests: use __AFL_INIT when available (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/fuzzer.cpp4
1 files changed, 4 insertions, 0 deletions
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;