Skip to content

Commit fa59bbe

Browse files
committed
Update IR
IR commit: ec588537889c84a4ec649a6f1aa9d7f1bfea7b4d
1 parent c15988a commit fa59bbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/jit/ir/ir_check.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ bool ir_check(const ir_ctx *ctx)
9595
bool ok = 1;
9696

9797
for (i = IR_UNUSED + 1, insn = ctx->ir_base + i; i < ctx->insns_count;) {
98+
if (insn->op >= IR_LAST_OP) {
99+
fprintf(stderr, "ir_base[%d].op invalid opcode (%d)\n", i, insn->op);
100+
ok = 0;
101+
break;
102+
}
98103
flags = ir_op_flags[insn->op];
99104
n = ir_input_edges_count(ctx, insn);
100105
for (j = 1, p = insn->ops + 1; j <= n; j++, p++) {

0 commit comments

Comments
 (0)