Skip to content

Commit 658f168

Browse files
committed
fix bug
1 parent fcbe97d commit 658f168

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/iwasm/interpreter/wasm_loader.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8429,7 +8429,8 @@ check_offset_pop(WASMLoaderContext *ctx, uint32 cells)
84298429
static bool
84308430
check_dynamic_offset_pop(WASMLoaderContext *ctx, uint32 cells)
84318431
{
8432-
if (ctx->dynamic_offset < cells)
8432+
if (ctx->dynamic_offset < 0
8433+
|| ((uint32)ctx->dynamic_offset < cells && ctx->dynamic_offset > 0))
84338434
return false;
84348435
return true;
84358436
}

0 commit comments

Comments
 (0)