Skip to content

Possible issue with validation of elem offset #1875

@MI3Guy

Description

@MI3Guy

For the wasm-3.0 branch, the validation for the elem section states that the offset expression must be valid with type [i32]. I would have expected this to be a type matching the index type of the table.

Some of the test cases are generating i64 constants in this position when converted to binary using the interpreter, and based on the spec of the text format, I believe that is correct.

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