wasm-micro-runtime/core/iwasm
Yi Liu 595dcd564f
Fix off-by-one in aot_alloc_tiny_frame overflow check (#4845)
* Fix off-by-one in aot_alloc_tiny_frame overflow check

The boundary check in aot_alloc_tiny_frame only verifies that
new_frame itself doesn't exceed top_boundary, but doesn't account
for the sizeof(AOTTinyFrame) bytes that are about to be written.
When new_frame equals top_boundary exactly, the check passes but
the subsequent write to new_frame->func_index goes past the
boundary. This matches the correct pattern used in
aot_alloc_frame (line 4086) which includes the frame size.
2026-03-03 13:48:42 +08:00
..
aot Fix off-by-one in aot_alloc_tiny_frame overflow check (#4845) 2026-03-03 13:48:42 +08:00
common windows: fix vectored exception handler lifecycle for repeated thread env init/destroy (#4842) 2026-02-27 08:20:44 +08:00
compilation Fix potential memory leak when discarding FreeMachineFunction (#4796) 2026-01-21 11:02:33 +08:00
doc Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
fast-jit add micro AMR_BUILD_LIME1 to enable minimal lime1 feature set (#4571) 2025-09-14 14:08:27 +08:00
include fix: WASM_API_EXTERN should get visibility("default") on gcc and clang (#4851) 2026-02-27 08:18:44 +08:00
interpreter workaround: prevent usage of anyref in struct fields and array elements (#4819) 2026-03-03 13:05:44 +08:00
libraries Add bounds checking for output tensor buffer in wasi-nn llama.cpp (#4847) 2026-03-02 14:52:16 -08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00