fuzz_tests: catch unhandled exceptions
Coverity 175293, 175312, 175266
This commit is contained in:
parent
3ebd05d4e5
commit
bcf3f6afdd
|
@ -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 New Issue