wasm-micro-runtime/core/iwasm/libraries/libc-wasi
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
..
sandboxed-system-primitives Fix switch-case fallthrough compilation warning (#2753) 2023-11-13 15:01:13 +08:00
libc_wasi_wrapper.c Refactor clock functions to use WASI types (#2666) 2023-10-25 18:06:04 +08:00
libc_wasi_wrapper.h Return uint32 from WASI functions (#2749) 2023-11-13 20:07:32 +08:00
libc_wasi.cmake Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00