wasm-micro-runtime/core
liang.he c7b2683f17
Fix out of bounds issue in is_native_addr_in_shared_heap function (#3886)
When checking for integer overflow, you may often write tests like p + i < p.
This works fine if p and i are unsigned integers, since any overflow in the
addition will cause the value to simply "wrap around." However, using this
pattern when p is a pointer is problematic because pointer overflow has
undefined behavior according to the C and C++ standards. If the addition
overflows and has an undefined result, the comparison will likewise be
undefined; it may produce an unintended result, or may be deleted entirely
by an optimizing compiler.
2024-10-31 12:44:55 +08:00
..
deps Separate app-manager and app-framework from WAMR (#3129) 2024-02-20 18:12:36 +08:00
iwasm Fix out of bounds issue in is_native_addr_in_shared_heap function (#3886) 2024-10-31 12:44:55 +08:00
shared Fix some compile warnings and typos (#3854) 2024-10-15 16:04:58 +08:00
config.h Bump AOT_CURRENT_VERSION for WAMR 2.x (gc, memory64) (#3880) 2024-10-29 11:26:06 +08:00
version.h Update release notes and update version to 2.2.0 (#3863) 2024-10-22 09:34:03 +08:00