Skip to content

Commit e93e024

Browse files
committed
Ignore errors in custom sections
1 parent 3e4798d commit e93e024

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/fuzzer/parser_fuzzer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ bool wabt_parse(const uint8_t* data, size_t data_size) noexcept
7272
read_options.features.disable_simd();
7373
read_options.features.disable_tail_call();
7474
read_options.features.disable_threads();
75+
read_options.fail_on_custom_section_error = false;
76+
read_options.stop_on_first_error = true;
77+
read_options.read_debug_names = false;
7578
Module module;
7679

7780
wabt_errors.clear();
@@ -82,6 +85,8 @@ bool wabt_parse(const uint8_t* data, size_t data_size) noexcept
8285

8386
if (Failed(result))
8487
return false;
88+
89+
wabt_errors.clear(); // Clear errors (probably) from custom sections.
8590
}
8691

8792
{

0 commit comments

Comments
 (0)