WebAssembly / WebAssembly/wabt

Adding some validation of custom sections (e.g. linking section)

Open
#1,166 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good-first-bug
Dominant language
C++
Stars
8.1k
Forks
827
Avg merge
4d 6h
Merged PRs (30d)
18

Description

wabt currently knows how to parse some custom sections, such as the linking section which are outside of the core spec.

I'd like to add some amount of validation there but its not clear where best to do this. Presumably not in ReadBinaryIr? Would it make sense to add this to ValidateModule? (disabled with the existing --ignore-custom-section-errors option)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the roles of ReadBinaryIr and ValidateModule, which the issue identifies as possible locations for custom-section validation. Define the validation scope for parsed custom sections such as the linking section, and ensure the existing --ignore-custom-section-errors option remains part of the decision about what counts as done.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, wasm
Domain
compilers, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.