WebAssembly / WebAssembly/wabt

Infinite loop parsing upstream annotations proposal

Open
#1,404 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When wast2json is run on the upstream annotations proposal test it currently infinite loops:

$ wast2json testsuite/proposals/annotations/annotations.wast --enable-all
<hangs>

I've minimized this to:

(module quote "(@a \0a)")  ;; \n

where wast2json run over that file infinite loops.

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

Reproduce the loop with wast2json using testsuite/proposals/annotations/annotations.wast and the minimized module quote case shown in the report. Trace annotation parsing from that input and verify that wast2json terminates successfully on both cases without changing unrelated parsing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, wasm
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.