Skip to content

Commit 6426fc4

Browse files
ZzzabiyakaDeniz Sokmen
andauthored
Fix out of bounds issues after memory.grow on non-aot non-threads builds (#3872)
Co-authored-by: Deniz Sokmen <[email protected]>
1 parent 7d56289 commit 6426fc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/iwasm/interpreter/wasm_interp_classic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6727,7 +6727,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
67276727
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0 \
67286728
|| WASM_ENABLE_BULK_MEMORY != 0
67296729
if (memory)
6730-
linear_mem_size = get_linear_mem_size();
6730+
linear_mem_size = GET_LINEAR_MEMORY_SIZE(memory);
67316731
#endif
67326732
if (wasm_copy_exception(module, NULL)) {
67336733
#if WASM_ENABLE_EXCE_HANDLING != 0

core/iwasm/interpreter/wasm_interp_fast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5994,7 +5994,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
59945994
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0 \
59955995
|| WASM_ENABLE_BULK_MEMORY != 0
59965996
if (memory)
5997-
linear_mem_size = get_linear_mem_size();
5997+
linear_mem_size = GET_LINEAR_MEMORY_SIZE(memory);
59985998
#endif
59995999
if (wasm_copy_exception(module, NULL))
60006000
goto got_exception;

0 commit comments

Comments
 (0)