fuzz_tests: catch unhandled exceptions

Coverity 175293, 175312, 175266
This commit is contained in:
moneromooo-monero 2018-09-27 18:23:24 +00:00
parent 3ebd05d4e5
commit bcf3f6afdd
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ static int __AFL_LOOP(int)
int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer) int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
{ {
TRY_ENTRY();
if (argc < 2) if (argc < 2)
{ {
std::cout << "usage: " << argv[0] << " " << "<filename>" << std::endl; std::cout << "usage: " << argv[0] << " " << "<filename>" << std::endl;
@ -69,4 +71,6 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
} }
return 0; return 0;
CATCH_ENTRY_L0("run_fuzzer", 1);
} }