We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd3dbd commit 8b2c0dfCopy full SHA for 8b2c0df
test/fuzzer/parser_fuzzer.cpp
@@ -3,6 +3,7 @@
3
// SPDX-License-Identifier: Apache-2.0
4
5
#include "parser.hpp"
6
+#include <cstdlib>
7
#include <iomanip>
8
#include <iostream>
9
@@ -36,7 +37,14 @@ Stats stats;
36
37
38
void handle_unexpected_errors() noexcept
39
{
- __builtin_trap();
40
+ static const bool ignore_errors = [] {
41
+ const auto options = std::getenv("OPTIONS");
42
+ if (!options)
43
+ return false;
44
+ return std::string{options}.find("ignore_errors") != std::string::npos;
45
+ }();
46
+ if (!ignore_errors)
47
+ __builtin_trap();
48
}
49
50
constexpr auto wabt_ignored_errors = {
0 commit comments