From 76c14489c5ce0a0eadd95a3bd89489e6d92dc072 Mon Sep 17 00:00:00 2001 From: Alix ANNERAUD Date: Tue, 18 Mar 2025 19:58:45 +0100 Subject: [PATCH] fix: correct module parameter in instruction limit exception handling --- core/iwasm/interpreter/wasm_interp_fast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/iwasm/interpreter/wasm_interp_fast.c b/core/iwasm/interpreter/wasm_interp_fast.c index af92c82e2..6d3a2ef19 100644 --- a/core/iwasm/interpreter/wasm_interp_fast.c +++ b/core/iwasm/interpreter/wasm_interp_fast.c @@ -104,7 +104,7 @@ typedef float64 CellType_F64; #if WASM_INSTRUCTION_METERING != 0 #define CHECK_INSTRUCTION_LIMIT() \ if (instructions_left == 0) { \ - wasm_set_exception(module_inst, "instruction limit exceeded"); \ + wasm_set_exception(module, "instruction limit exceeded"); \ goto got_exception; \ } \ else if (instructions_left > 0) \