diff --git a/core/iwasm/interpreter/wasm_interp_fast.c b/core/iwasm/interpreter/wasm_interp_fast.c index fec9734ed..52e9379e4 100644 --- a/core/iwasm/interpreter/wasm_interp_fast.c +++ b/core/iwasm/interpreter/wasm_interp_fast.c @@ -442,7 +442,7 @@ wasm_interp_get_frame_ref(WASMInterpFrame *frame) opnd_off = *(int16 *)(frame_ip + off); \ addr_tmp = frame_lp + opnd_off; \ PUT_REF_TO_ADDR(addr_tmp, value); \ - SET_FRAME_REF(ond_off); \ + SET_FRAME_REF(opnd_off); \ } while (0) #define SET_OPERAND(op_type, off, value) SET_OPERAND_##op_type(off, value) diff --git a/core/iwasm/interpreter/wasm_loader.c b/core/iwasm/interpreter/wasm_loader.c index 7280201fb..456964cd1 100644 --- a/core/iwasm/interpreter/wasm_loader.c +++ b/core/iwasm/interpreter/wasm_loader.c @@ -8545,8 +8545,7 @@ check_offset_pop(WASMLoaderContext *ctx, uint32 cells) static bool check_dynamic_offset_pop(WASMLoaderContext *ctx, uint32 cells) { - if (ctx->dynamic_offset < 0 - || (ctx->dynamic_offset > 0 && (uint32)ctx->dynamic_offset < cells)) + if (ctx->dynamic_offset < 0 || (uint32)ctx->dynamic_offset < cells) return false; return true; } diff --git a/core/iwasm/interpreter/wasm_mini_loader.c b/core/iwasm/interpreter/wasm_mini_loader.c index ec1e25cdb..0ac120263 100644 --- a/core/iwasm/interpreter/wasm_mini_loader.c +++ b/core/iwasm/interpreter/wasm_mini_loader.c @@ -4345,8 +4345,7 @@ check_offset_pop(WASMLoaderContext *ctx, uint32 cells) static bool check_dynamic_offset_pop(WASMLoaderContext *ctx, uint32 cells) { - if (ctx->dynamic_offset < 0 - || (ctx->dynamic_offset > 0 && (uint32)ctx->dynamic_offset < cells)) + if (ctx->dynamic_offset < 0 || (uint32)ctx->dynamic_offset < cells) return false; return true; }