wasm-micro-runtime/core/iwasm/common
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
..
arch Fix clang compile warnings (#3396) 2024-05-08 16:43:47 +08:00
gc Modify logging for windows exception handler and remove unused function (#3489) 2024-05-31 13:07:56 +08:00
iwasm_common.cmake Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c wasm_application.c: Avoid null pointer dereference (#3620) 2024-07-12 16:59:59 +08:00
wasm_blocking_op.c Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasm_c_api_internal.h Fix some spelling issues (#3385) 2024-05-06 07:56:48 +08:00
wasm_c_api.c Refine looking up aot function with index (#3882) 2024-10-29 10:58:11 +08:00
wasm_exec_env.c Allow to set native stack boundary to exec_env (#3862) 2024-10-18 12:49:57 +08:00
wasm_exec_env.h Allow to set native stack boundary to exec_env (#3862) 2024-10-18 12:49:57 +08:00
wasm_loader_common.c Support table64 extension in classic-interp and AOT running modes (#3811) 2024-10-11 21:14:56 +08:00
wasm_loader_common.h Support table64 extension in classic-interp and AOT running modes (#3811) 2024-10-11 21:14:56 +08:00
wasm_memory.c Fix out of bounds issue in is_native_addr_in_shared_heap function (#3886) 2024-10-31 12:44:55 +08:00
wasm_memory.h Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
wasm_native.c Implement a first version of shared heap feature (#3789) 2024-09-14 10:51:42 +08:00
wasm_native.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_runtime_common.c Refine wasm/aot function instance lookup (#3865) 2024-10-18 15:15:33 +08:00
wasm_runtime_common.h Allow to set native stack boundary to exec_env (#3862) 2024-10-18 12:49:57 +08:00
wasm_shared_memory.c Implement shared heap for AOT (#3815) 2024-09-29 12:50:59 +08:00
wasm_shared_memory.h Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
wasm_suspend_flags.h Do not inherit WASM_SUSPEND_FLAG_BLOCKING from the parent thread (#3051) 2024-01-19 09:55:01 +08:00