Fix issues found by GC and Fast JIT, refine some codes (#1055)
Fix handle OP_TABLE_COPY issue Fix loader handle OP_BLOCK/IF/LOOP issue if type_index is larger than 256 Fix loader handle OP_GET_GLOBAL, allow to change to GET_GLOBAL_64 for aot compiler similiar to handling OP_SET_GLOBAL Refine loader handle OP_GET/SET/TEE_LOCAL, disable changing opcode when source debugging is enabled, so as no need to record the change of opcode Refine wasm_interp_interp_frame_size to reduce the wasm operand stack usage Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -2984,8 +2984,8 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
s = (uint32)POP_I32();
|
||||
d = (uint32)POP_I32();
|
||||
|
||||
if (s + n > dst_tbl_inst->cur_size
|
||||
|| d + n > src_tbl_inst->cur_size) {
|
||||
if (d + n > dst_tbl_inst->cur_size
|
||||
|| s + n > src_tbl_inst->cur_size) {
|
||||
wasm_set_exception(module,
|
||||
"out of bounds table access");
|
||||
goto got_exception;
|
||||
|
||||
Reference in New Issue
Block a user