WebAssembly / WebAssembly/binaryen

wasm-emscripten-finalize does not escape characters

Open
#3,470 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 19h
Merged PRs (30d)
69

Description

For example, it generates invalid json for the following wasm file:

(module (import "env" "\"" (func $foo)))

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 with the wasm-emscripten-finalize tool and reproduce the issue using the WebAssembly module shown in the report. Trace how the imported name containing a quote is emitted, then verify that the generated JSON remains valid for this example and other escaped characters.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.