Skip to content

Roundtrip-text fuzz bug with shared types #6850

@kripken

Description

@kripken

The attached wasm validates, but after conversion to text it becomes invalid,

$ bin/wasm-opt -all a.wasm --print > a.wat
warning: no output file specified, not emitting output
$ bin/wasm-opt -all a.wat
[wasm-validator error in function 0] function body type must match, if function returns, on 
(ref.func $0)
Fatal: error validating input

a.wasm.gz

cc @tlively

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