Skip to content

Missing Type Validation in call_indirect Instruction, causing segmentation fault #4497

@Q1IQ

Description

@Q1IQ

iwasm fails to validate the function signature in call_indirect, potentially causing a segmentation fault at runtime. This violates the WebAssembly specification, which mandates signature checking for indirect calls.

Test case

program.wat.txt
program.wasm.txt

Your environment

  • OS: Ubuntu 20.04
  • CPU: amd64
  • WAMR version: iwasm 2.2.0
  • Commands:
iwasm --interp -f main ./program.wasm

Actual behavior

Aborted (core dumped)

Expected State

expected signature type

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