From c9815ef2c75e97f3b9d240dfc29a8e6d2c4c54c6 Mon Sep 17 00:00:00 2001 From: James Ring Date: Mon, 16 Mar 2026 19:39:08 -0700 Subject: [PATCH] fix msan errors (#3724) Mark argv as initialized so that msan doesn't complain --- core/iwasm/aot/aot_runtime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index fa3212dfa..13651805d 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -3267,6 +3267,10 @@ aot_invoke_native(WASMExecEnv *exec_env, uint32 func_idx, uint32 argc, bool ret = false; bh_assert(func_idx < aot_module->import_func_count); +#if __has_feature(memory_sanitizer) +#include + __msan_unpoison(argv, (sizeof(uint32) * argc)); +#endif import_func = aot_module->import_funcs + func_idx; if (import_func->call_conv_wasm_c_api) func_ptr =