Skip to content

Incorrect Type Index Validation for Implicit Function Signatures #2709

@Q1IQ

Description

@Q1IQ

Test case

typesection3.wasm.txt

Environment

  • OS: Ubuntu 20.04
  • CPU: amd64
  • wasm-interp version: 6ca912cf
  • Commands:
wabt/bin/wasm-interp --enable-all test.wasm --run-export=run

Actual behavior

The tool fails to compile the module, reporting a type variable range error during the function definition phase:

0000024: error: function type variable out of range: 2 (max 2)
0000024: error: OnFunction callback failed

Expected behavior

The module should be accepted and compiled successfully.

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