wasm-micro-runtime/core/iwasm
zoraaver 8c27676718
Return uint32 from WASI functions (#2749)
Returning uint16 from WASI functions is technically correct. However,
the smallest integer type in WASM is int32 and since we don't guarantee
that the upper 16 bits of the result are zero'ed, it can result in
tricky bugs if the language SDK being used in the WASM app does not cast
back immediately to uint16. To prevent this, we directly return uint32
instead, so that the result is well-defined as a 32-bit number.
2023-11-13 20:07:32 +08:00
..
aot Grab cluster->lock when modifying exec_env->module_inst (#2685) 2023-11-09 18:56:02 +08:00
common Merge pull request #2740 from bytecodealliance/dev/wasi-libc-windows 2023-11-10 16:58:31 +08:00
compilation Add eabihf ABI support and set vendor-sys of bare-metal targets (#2745) 2023-11-13 18:01:15 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit Fix invalid use of jit_reg_is_const_val in fast-jit (#2718) 2023-11-03 14:25:26 +08:00
include Merge branch main into dev/wasi-libc-windows 2023-11-09 10:13:59 +08:00
interpreter Merge pull request #2740 from bytecodealliance/dev/wasi-libc-windows 2023-11-10 16:58:31 +08:00
libraries Return uint32 from WASI functions (#2749) 2023-11-13 20:07:32 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00