wasm-micro-runtime/core/iwasm
liang.he 996758cd4a
Remove the dlen to optimize it. (#4193)
There are two reasons for this optimization:
- The value of dlen can equal 0x1_0000_0000, even in wasm32 mode, because it is derived from (4G-0). This results in a truncation when it is passed to b_memmove_s(). Consequently, s1max becomes 0 and n is greater than s1max. To correct this, a longer type is required.
- The dlen is only used to check if there is enough space in b_memmove_s(). However, from a different angle, after confirming that both src+len and dst+len are within the memory range, we can be assured and there is no need for this explicit check.
2025-04-17 15:21:02 +08:00
..
aot Fix the error of AOT mode on the "i386-windows-msvc" platform (#4183) 2025-04-17 00:04:27 +08:00
common Merge dev/simd for fast-interp (#4131) 2025-03-20 14:23:20 +08:00
compilation Fix the error of AOT mode on the "i386-windows-msvc" platform (#4183) 2025-04-17 00:04:27 +08:00
doc Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
fast-jit Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
include Merge pull request #4033 from g0djan/godjan/iterate_callstack 2025-03-11 10:31:56 +08:00
interpreter Remove the dlen to optimize it. (#4193) 2025-04-17 15:21:02 +08:00
libraries debug-engine: fix a few type mismatches (#4189) 2025-04-17 00:07:08 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00