Skip to content

Commit 8c39c2a

Browse files
committed
Do not ignore WABT errors
1 parent e93e024 commit 8c39c2a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/fuzzer/parser_fuzzer.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ void handle_unexpected_errors() noexcept
4747
__builtin_unreachable();
4848
}
4949

50-
constexpr auto wabt_ignored_errors = {
51-
"unable to read u32 leb128: version",
52-
"invalid linking metadata version:",
53-
};
50+
//constexpr auto wabt_ignored_errors = {
51+
// "unable to read u32 leb128: version",
52+
// "invalid linking metadata version:",
53+
//};
5454

5555
wabt::Errors wabt_errors;
5656

@@ -135,15 +135,15 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t data_size) noexcept
135135
bool has_errors = false;
136136
for (const auto& err : wabt_errors)
137137
{
138-
bool ignored = false;
139-
140-
for (const auto& m : wabt_ignored_errors)
141-
{
142-
if (err.message.find(m) != std::string::npos)
143-
ignored = true;
144-
}
145-
if (ignored)
146-
continue;
138+
// bool ignored = false;
139+
//
140+
// for (const auto& m : wabt_ignored_errors)
141+
// {
142+
// if (err.message.find(m) != std::string::npos)
143+
// ignored = true;
144+
// }
145+
// if (ignored)
146+
// continue;
147147

148148
std::cerr << " MISSED ERROR: " << err.message << "\n";
149149
has_errors = true;

0 commit comments

Comments
 (0)