WebAssembly / WebAssembly/wabt
Infinite loop parsing upstream annotations proposal
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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