mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
fix msan errors
Mark argv as initialized so that msan doesn't complain
This commit is contained in:
parent
740f499e9c
commit
0cfe3ce452
|
@ -2840,6 +2840,10 @@ aot_invoke_native(WASMExecEnv *exec_env, uint32 func_idx, uint32 argc,
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
bh_assert(func_idx < aot_module->import_func_count);
|
bh_assert(func_idx < aot_module->import_func_count);
|
||||||
|
|
||||||
|
#if __has_feature(memory_sanitizer)
|
||||||
|
#include <sanitizer/msan_interface.h>
|
||||||
|
__msan_unpoison(argv, (sizeof(uint32) * argc));
|
||||||
|
#endif
|
||||||
import_func = aot_module->import_funcs + func_idx;
|
import_func = aot_module->import_funcs + func_idx;
|
||||||
if (import_func->call_conv_wasm_c_api)
|
if (import_func->call_conv_wasm_c_api)
|
||||||
func_ptr =
|
func_ptr =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user