wasm-micro-runtime/core/iwasm/interpreter
Wenyong Huang a5188f5574
Add checks to avoid wasm_runtime_malloc memory with size 0 (#507)
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>
2021-01-28 16:16:02 +08:00
..
iwasm_interp.cmake Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
wasm_interp_classic.c Implement performance profiler and call stack dump, and update toolchain document (#501) 2021-01-18 13:23:10 +08:00
wasm_interp_fast.c Implement performance profiler and call stack dump, and update toolchain document (#501) 2021-01-18 13:23:10 +08:00
wasm_interp.h Implement performance profiler and call stack dump, and update toolchain document (#501) 2021-01-18 13:23:10 +08:00
wasm_loader.c Add checks to avoid wasm_runtime_malloc memory with size 0 (#507) 2021-01-28 16:16:02 +08:00
wasm_loader.h Update wasm app build scripts for wasi-sdk-12 and refine interpreter (#481) 2020-12-28 10:46:31 +08:00
wasm_mini_loader.c Add checks to avoid wasm_runtime_malloc memory with size 0 (#507) 2021-01-28 16:16:02 +08:00
wasm_opcode.h Implement SIMD float ceil/floor/trunc/nearest opcodes (#472) 2020-12-16 15:33:25 +08:00
wasm_runtime.c Add checks to avoid wasm_runtime_malloc memory with size 0 (#507) 2021-01-28 16:16:02 +08:00
wasm_runtime.h Implement performance profiler and call stack dump, and update toolchain document (#501) 2021-01-18 13:23:10 +08:00
wasm.h Refine aot call_indirect opcode translation (#492) 2021-01-05 18:05:30 +08:00