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 | ||
aot_compiler.c | ||
aot_compiler.h | ||
aot_emit_aot_file.c | ||
aot_emit_compare.c | ||
aot_emit_compare.h | ||
aot_emit_const.c | ||
aot_emit_const.h | ||
aot_emit_control.c | ||
aot_emit_control.h | ||
aot_emit_conversion.c | ||
aot_emit_conversion.h | ||
aot_emit_exception.c | ||
aot_emit_exception.h | ||
aot_emit_function.c | ||
aot_emit_function.h | ||
aot_emit_memory.c | ||
aot_emit_memory.h | ||
aot_emit_numberic.c | ||
aot_emit_numberic.h | ||
aot_emit_parametric.c | ||
aot_emit_parametric.h | ||
aot_emit_variable.c | ||
aot_emit_variable.h | ||
aot_llvm_extra.cpp | ||
aot_llvm.c | ||
aot_llvm.h | ||
aot.c | ||
aot.h | ||
iwasm_compl.cmake |