Skip to content

Commit

Permalink
Fix out of bounds issues after memory.grow on non-aot non-threads bui…
Browse files Browse the repository at this point in the history
…lds (#3872)

Co-authored-by: Deniz Sokmen <[email protected]>
  • Loading branch information
Zzzabiyaka and Deniz Sokmen authored Oct 23, 2024
1 parent 7d56289 commit 6426fc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/iwasm/interpreter/wasm_interp_classic.c
Original file line number Diff line number Diff line change
Expand Up @@ -6727,7 +6727,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0 \
|| WASM_ENABLE_BULK_MEMORY != 0
if (memory)
linear_mem_size = get_linear_mem_size();
linear_mem_size = GET_LINEAR_MEMORY_SIZE(memory);
#endif
if (wasm_copy_exception(module, NULL)) {
#if WASM_ENABLE_EXCE_HANDLING != 0
Expand Down
2 changes: 1 addition & 1 deletion core/iwasm/interpreter/wasm_interp_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -5994,7 +5994,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0 \
|| WASM_ENABLE_BULK_MEMORY != 0
if (memory)
linear_mem_size = get_linear_mem_size();
linear_mem_size = GET_LINEAR_MEMORY_SIZE(memory);
#endif
if (wasm_copy_exception(module, NULL))
goto got_exception;
Expand Down

0 comments on commit 6426fc4

Please sign in to comment.