fast-interp: Fix copy_stack_top_i64 overlap issue (#3146)

This fixes https://github.com/bytecodealliance/wasm-micro-runtime/issues/3145.
This commit is contained in:
Xu Jun 2024-02-07 13:24:47 +08:00 committed by GitHub
parent 16a4d71b34
commit 7cac0531ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4794,8 +4794,9 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
{
addr1 = GET_OFFSET();
addr2 = GET_OFFSET();
frame_lp[addr2] = frame_lp[addr1];
frame_lp[addr2 + 1] = frame_lp[addr1 + 1];
PUT_I64_TO_ADDR(frame_lp + addr2,
GET_I64_FROM_ADDR(frame_lp + addr1));
#if WASM_ENABLE_GC != 0
/* Ignore constants because they are not reference */