Skip to content

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

@lann

Description

@lann

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions