You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix off-by-one in AOT func_index bounds checks (#4836)
The AOT relocation loader validates func_index using:
(func_index = (uint32)atoi(p)) > module->func_count
Since func_ptrs is an array of func_count elements (indices 0 to
func_count-1), func_index == func_count is out of bounds. The check
must use >= instead of > to reject this boundary case.
Fix all 4 affected locations in aot_loader.c.
0 commit comments