Skip to content

Commit

Permalink
fuzz_tests: catch unhandled exceptions
Browse files Browse the repository at this point in the history
Coverity 175293, 175312, 175266
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 3ebd05d commit bcf3f6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fuzz/fuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -69,4 +71,6 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
}

return 0;

CATCH_ENTRY_L0("run_fuzzer", 1);
}

0 comments on commit bcf3f6a

Please sign in to comment.