From dbdf3df60b8bc4fc81b46f7d53335e986b2cfb15 Mon Sep 17 00:00:00 2001 From: James Ring Date: Sat, 23 Nov 2024 19:32:34 -0800 Subject: [PATCH] Use plain assignment rather than bh_memcpy_s (#3924) --- core/iwasm/interpreter/wasm_runtime.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/iwasm/interpreter/wasm_runtime.c b/core/iwasm/interpreter/wasm_runtime.c index f9378aac..c3f35916 100644 --- a/core/iwasm/interpreter/wasm_runtime.c +++ b/core/iwasm/interpreter/wasm_runtime.c @@ -1208,9 +1208,8 @@ globals_instantiate(WASMModule *module, WASMModuleInstance *module_inst, /* The linked global instance has been initialized, we just need to copy the value. */ - bh_memcpy_s(&(global->initial_value), sizeof(WASMValue), - &(global_import->import_global_linked->init_expr.u), - sizeof(WASMValue)); + global->initial_value = + global_import->import_global_linked->init_expr.u; } else #endif