mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 12:16:06 -04:00
fuzz_tests: refactor and add OSS-Fuzz compatibility
This commit is contained in:
parent
77a008f714
commit
81773f55a4
16 changed files with 232 additions and 538 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue