wasm-micro-runtime/core/iwasm/aot
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
..
arch Add missing functions from thumb arch (#4718) 2025-11-28 17:08:24 +08:00
debug Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
aot_intrinsic.c Enable -Wdouble-promotion by default and fix related warnings (#4603) 2025-09-12 08:44:42 +08:00
aot_intrinsic.h fix return types of our 64-bit clz/ctz/popcount intrinsics (#4238) 2025-05-06 10:15:00 +08:00
aot_loader.c Fix off-by-one in AOT func_index bounds checks (#4836) 2026-02-13 19:21:54 +08:00
aot_perf_map.c Add missing casts and improve error handling in performance map functions (#4202) 2025-04-17 15:22:23 +08:00
aot_perf_map.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_reloc.h Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
aot_runtime.c Fix off-by-one in aot_alloc_tiny_frame overflow check (#4845) 2026-03-03 13:48:42 +08:00
aot_runtime.h Pass InstantiationArgs2 down to aot_instantiate/wasm_instantiate (#4594) 2025-10-23 15:57:50 +08:00
aot_validator.c add a validator for aot module (#3995) 2025-02-05 15:21:49 +08:00
aot_validator.h add a validator for aot module (#3995) 2025-02-05 15:21:49 +08:00
iwasm_aot.cmake Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00