wasm-micro-runtime/tests
Yi Liu 539bebed9c
Fix missing IS_INVALID_TAGINDEX check in RETHROW handler (#4837)
* Fix RETHROW handler missing IS_INVALID_TAGINDEX check

Add validation for exception_tag_index in the RETHROW opcode handler
to prevent out-of-bounds access to module->module->tags[] when the
tag index is INVALID_TAGINDEX (0xFFFFFFFF). This matches the existing
check in the THROW handler.

When CATCH_ALL catches a cross-module exception with an unknown tag,
it pushes INVALID_TAGINDEX onto the stack. Without this check, a
subsequent RETHROW would access tags[0xFFFFFFFF].

* Fix incorrect code section byte counts in exception handling test

The hand-crafted WASM binary in load_module_with_exception_handling had
an off-by-one in the code section: body size was declared as 7 but the
actual body (local count + try/catch_all/end/end) is only 6 bytes.
This caused the WASM loader to fail with "unexpected end" when it tried
to read past the available bytes.

Fix the body size from 7 to 6 and the code section size from 9 to 8.
2026-03-09 10:04:18 +08:00
..
benchmarks Modify AOT static PGO to conform to llvm-18 and add a CI job to test static PGO on the coremark benchmark (#4345) 2025-06-12 16:57:11 +08:00
fuzz/wasm-mutator-fuzz fuzz: remove unnecessary internal headers from wasm_mutator_fuzz (#4865) 2026-03-06 21:30:29 +08:00
malformed Add malformed test cases (#3459) 2024-05-21 16:38:34 +08:00
regression/ba-issues feat: add support for checking unsupported build configurations (#4690) 2025-12-01 17:55:07 +08:00
requirement-engineering Collective fix (#4413) 2025-06-26 10:20:40 +08:00
standalone fix(aot): reserve x18 register on macOS ARM64 (#4775) 2026-01-20 07:30:58 +08:00
unit Fix missing IS_INVALID_TAGINDEX check in RETHROW handler (#4837) 2026-03-09 10:04:18 +08:00
wamr-compiler Fix AOT shift operations for indirect constants (#2627) 2023-10-11 11:22:34 +08:00
wamr-test-suites workaround: prevent usage of anyref in struct fields and array elements (#4819) 2026-03-03 13:05:44 +08:00