Skip to content

Strange symbols don't roundtrip through wasm2wat and wat2wasm #685

Description

@jtgeibel

Over in alexcrichton/wasm-gc#8 I'm experimenting with demangling rust symbols in wasm output. This results in symbol names such as <alloc::vec::Vec<T>>::extend_from_slice and <&'a T as core::fmt::Debug>::fmt.

While wasm2wat produces very nice looking output, I get a segmentation fault when feeding this output back into wat2wasm. I'm guessing that the space characters are causing issues when parsing the .wat file but other characters could be causing problems as well.

example.wasm.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions