From 8c39c2ab9c4f35e7dc4a0dc3639d14a5ec2942aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 2 Oct 2020 18:01:13 +0200 Subject: [PATCH] Do not ignore WABT errors --- test/fuzzer/parser_fuzzer.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/fuzzer/parser_fuzzer.cpp b/test/fuzzer/parser_fuzzer.cpp index d19c4a4f7..6fe32f71d 100644 --- a/test/fuzzer/parser_fuzzer.cpp +++ b/test/fuzzer/parser_fuzzer.cpp @@ -47,10 +47,10 @@ void handle_unexpected_errors() noexcept __builtin_unreachable(); } -constexpr auto wabt_ignored_errors = { - "unable to read u32 leb128: version", - "invalid linking metadata version:", -}; +//constexpr auto wabt_ignored_errors = { +// "unable to read u32 leb128: version", +// "invalid linking metadata version:", +//}; wabt::Errors wabt_errors; @@ -135,15 +135,15 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t data_size) noexcept bool has_errors = false; for (const auto& err : wabt_errors) { - bool ignored = false; - - for (const auto& m : wabt_ignored_errors) - { - if (err.message.find(m) != std::string::npos) - ignored = true; - } - if (ignored) - continue; +// bool ignored = false; +// +// for (const auto& m : wabt_ignored_errors) +// { +// if (err.message.find(m) != std::string::npos) +// ignored = true; +// } +// if (ignored) +// continue; std::cerr << " MISSED ERROR: " << err.message << "\n"; has_errors = true;