Skip to content

Commit

Permalink
Ignore errors in custom sections
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Oct 2, 2020
1 parent 3e4798d commit e93e024
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/fuzzer/parser_fuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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.
}

{
Expand Down

0 comments on commit e93e024

Please sign in to comment.