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

View file

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