This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/core/iwasm
Wenyong Huang 55ad4c7ec7
Fix wasm-c-api wasm_module_imports issues (#1021)
Fix several issues in wasm-c-api wasm_module_imports function:
1. Two of the if branches never set the module_name and name fields which are later passed as arguments to wasm_importtype_new, and eventually might cause double-free and/or use-after-free
2. Should zero module_name/name/extern_type at the start of loop iteration, and destroy their resources when failed at the end of loop iteration
2. No need to check `if (!extern_type) { continue; }`, as extern_type is converted from type and type is already checked
3. No need to wasm_importtype_vec_delete(out) when failed, as it is passed from outside and should be destroyed by outside
2022-02-24 09:36:46 +08:00
..
aot Refine call native function from AOT code (#1015) 2022-02-23 14:58:32 +08:00
common Fix wasm-c-api wasm_module_imports issues (#1021) 2022-02-24 09:36:46 +08:00
compilation Refine call native function from AOT code (#1015) 2022-02-23 14:58:32 +08:00
include Use LLVM new pass manager for wamrc (#978) 2022-01-24 11:10:37 +08:00
interpreter Refactor externref related APIs of reference types feature (#971) 2022-01-19 11:25:08 +08:00
libraries [debugger enhance] don't block gdbserver thread while executing (#989) 2022-02-16 17:35:35 +08:00
README.md Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00