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> |
||
---|---|---|
.. | ||
simd_access_lanes.c | ||
simd_access_lanes.h | ||
simd_bit_shifts.c | ||
simd_bit_shifts.h | ||
simd_bitmask_extracts.c | ||
simd_bitmask_extracts.h | ||
simd_bitwise_ops.c | ||
simd_bitwise_ops.h | ||
simd_bool_reductions.c | ||
simd_bool_reductions.h | ||
simd_common.c | ||
simd_common.h | ||
simd_comparisons.c | ||
simd_comparisons.h | ||
simd_construct_values.c | ||
simd_construct_values.h | ||
simd_conversions.c | ||
simd_conversions.h | ||
simd_floating_point.c | ||
simd_floating_point.h | ||
simd_int_arith.c | ||
simd_int_arith.h | ||
simd_load_store.c | ||
simd_load_store.h | ||
simd_sat_int_arith.c | ||
simd_sat_int_arith.h |