mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-10-16 21:12:20 +00:00
a5188f5574
In some platforms, allocating memory with size 0 may return NULL but not an empty memory block, which causes runtime load, instantiate or execute wasm/aot file failed. We add checks to try to avoid allocating memory in runtime if the size is 0. And in wasm_runtime_malloc/free, output warning if allocate memory with size 0 and free memory with NULL ptr. Also fix some coding style issues, fix handle riscv32 ilp32d issue, and fix several wasm-c-api issues. Signed-off-by: Wenyong Huang <wenyong.huang@intel.com> |
||
---|---|---|
.. | ||
uncommon | ||
bh_assert.c | ||
bh_assert.h | ||
bh_common.c | ||
bh_common.h | ||
bh_hashmap.c | ||
bh_hashmap.h | ||
bh_list.c | ||
bh_list.h | ||
bh_log.c | ||
bh_log.h | ||
bh_platform.h | ||
bh_queue.c | ||
bh_queue.h | ||
bh_vector.c | ||
bh_vector.h | ||
runtime_timer.c | ||
runtime_timer.h | ||
SConscript | ||
shared_utils.cmake |