Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wave: Require escaping some "problematic" unicode characters #1629

Open
lann opened this issue Jun 21, 2024 · 0 comments
Open

wave: Require escaping some "problematic" unicode characters #1629

lann opened this issue Jun 21, 2024 · 0 comments

Comments

@lann
Copy link
Contributor

lann commented Jun 21, 2024

Currently char and string escapes are only required for: \n, \\ and either \' (chars) or \" (strings).

In order to avoid human parsing problems, consider a few other mandatory escapes:

  • bidi chars (source of CVEs)
  • unicode deprecations

See: https://github.com/bytecodealliance/wac/blob/b294ae04cd85f12a619db08165b3117b8f977b0d/crates/wac-parser/src/lexer.rs#L46-L82

(migrated from lann/wasm-wave#31)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant