Fix out of bounds issues after memory.grow on non-aot non-threads builds (#3872)

Co-authored-by: Deniz Sokmen <dsokmen@amazon.com>
This commit is contained in:
Maks Litskevich 2024-10-23 07:48:40 +01:00 committed by GitHub
parent 7d56289fab
commit 6426fc4993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;