mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
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:
parent
16a4d71b34
commit
7cac0531ad
|
@ -4794,8 +4794,9 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
{
|
{
|
||||||
addr1 = GET_OFFSET();
|
addr1 = GET_OFFSET();
|
||||||
addr2 = 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
|
#if WASM_ENABLE_GC != 0
|
||||||
/* Ignore constants because they are not reference */
|
/* Ignore constants because they are not reference */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user