Merge pull request #4254

de905d4b fuzz_tests: use __AFL_INIT when available (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-09-14 12:44:47 +02:00
commit 885d3d5a99
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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;