aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 18:23:24 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 18:23:24 +0000
commitbcf3f6afdd92345da874c4b1241d71b03cabccf3 (patch)
treee21ea6db44c99f6b31d29b5ec78707cc92b2381c
parentminer: restore stream flags after changing them (diff)
downloadmonero-bcf3f6afdd92345da874c4b1241d71b03cabccf3.tar.xz
fuzz_tests: catch unhandled exceptions
Coverity 175293, 175312, 175266
-rw-r--r--tests/fuzz/fuzzer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fuzz/fuzzer.cpp b/tests/fuzz/fuzzer.cpp
index 032ff049a..ab14e2b79 100644
--- a/tests/fuzz/fuzzer.cpp
+++ b/tests/fuzz/fuzzer.cpp
@@ -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);
}