wasm-micro-runtime/core/iwasm/libraries/libc-wasi
Georgii Rylov c1723b8f3e
libc_wasi_wrapper.c: Fix min func issue for size_t < 8 bytes on some platforms (#2152)
According to the 1999 ISO C standard (C99), size_t is an unsigned integer type of
at least 16 bit (see sections 7.17 and 7.18.3), it may be uint32 in 32-bit platforms:
https://en.cppreference.com/w/cpp/types/size_t

Calling function `size_t min(size_t, size_t)` with two uint64 arguments may get
invalid result.

Co-authored-by: Georgii Rylov <godjan@amazon.co.uk>
2023-04-26 21:03:02 +08:00
..
sandboxed-system-primitives libc-wasi/posix.c: Fix POLL{RD,WR}NORM in uClibc (#2069) 2023-03-28 11:20:31 +08:00
libc_wasi_wrapper.c libc_wasi_wrapper.c: Fix min func issue for size_t < 8 bytes on some platforms (#2152) 2023-04-26 21:03:02 +08:00
libc_wasi_wrapper.h Implement part of Berkeley Socket API for libc-wasi (#1036) 2022-03-10 15:13:38 +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