mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
fuzz_tests: catch unhandled exceptions
Coverity 175293, 175312, 175266
This commit is contained in:
parent
3ebd05d4e5
commit
bcf3f6afdd
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,8 @@ static int __AFL_LOOP(int)
|
|||
|
||||
int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
|
||||
{
|
||||
TRY_ENTRY();
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
std::cout << "usage: " << argv[0] << " " << "<filename>" << std::endl;
|
||||
|
@ -69,4 +71,6 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
|
|||
}
|
||||
|
||||
return 0;
|
||||
|
||||
CATCH_ENTRY_L0("run_fuzzer", 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue