diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-08-13 22:13:11 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-08-13 22:13:56 +0000 |
| commit | de905d4b48269a5bbc069da5e7476ffd798b7edb (patch) | |
| tree | 143b1dafca34a797255585f0a1c14c526701fed7 /tests/fuzz | |
| parent | 0dddfeacc982ad208808e3a828163837fc4aba38 (diff) | |
| download | monzero-core-de905d4b48269a5bbc069da5e7476ffd798b7edb.tar.gz monzero-core-de905d4b48269a5bbc069da5e7476ffd798b7edb.tar.xz monzero-core-de905d4b48269a5bbc069da5e7476ffd798b7edb.zip | |
fuzz_tests: use __AFL_INIT when available
alleged to speed things up
Diffstat (limited to 'tests/fuzz')
| -rw-r--r-- | tests/fuzz/fuzzer.cpp | 4 |
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; |
