From e93e0240e9304bf2aa021fe67a14c5c297afa723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Fri, 2 Oct 2020 17:59:39 +0200 Subject: [PATCH] Ignore errors in custom sections --- test/fuzzer/parser_fuzzer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/fuzzer/parser_fuzzer.cpp b/test/fuzzer/parser_fuzzer.cpp index 75ed5e030..d19c4a4f7 100644 --- a/test/fuzzer/parser_fuzzer.cpp +++ b/test/fuzzer/parser_fuzzer.cpp @@ -72,6 +72,9 @@ bool wabt_parse(const uint8_t* data, size_t data_size) noexcept read_options.features.disable_simd(); read_options.features.disable_tail_call(); read_options.features.disable_threads(); + read_options.fail_on_custom_section_error = false; + read_options.stop_on_first_error = true; + read_options.read_debug_names = false; Module module; wabt_errors.clear(); @@ -82,6 +85,8 @@ bool wabt_parse(const uint8_t* data, size_t data_size) noexcept if (Failed(result)) return false; + + wabt_errors.clear(); // Clear errors (probably) from custom sections. } {