Skip to content

AOT does not throw error as expected #4028

Open
@AY268

Description

I try to test The AOT module of WAMR, and I use the tests in wasm-spec-tests.
I compile it to AOT myself, but when I run this case, I didn't get RuntimeError.

The WebAssembly module is:
(module
(memory 1)
(data (i32.const 0) "abcdefghijklmnopqrstuvwxyz")
...
(func (export "32_good5") (param $i i32) (result i32)
(i32.load offset=25 align=4 (local.get $i)) ;; 122 'z\0\0\0'
)
...
)

The test case is:
(assert_trap (invoke "32_good5" (i32.const 65508)) "out of bounds memory access")

I wonder why the AOT module of WAMR does not throw error when I run this test case, and how it could be made to throw one.

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