mirror of
https://github.com/monero-project/monero.git
synced 2025-12-23 07:29:11 -08:00
fuzz_tests: refactor and add OSS-Fuzz compatibility
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include "common/util.h"
|
||||
#include "fuzzer.h"
|
||||
|
||||
#ifndef OSSFUZZ
|
||||
|
||||
#if (!defined(__clang__) || (__clang__ < 5))
|
||||
static int __AFL_LOOP(int)
|
||||
{
|
||||
@@ -74,3 +76,5 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
|
||||
|
||||
CATCH_ENTRY_L0("run_fuzzer", 1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user