Skip to content

Commit 6dd8401

Browse files
committed
Missed opline guard
1 parent 9e3f352 commit 6dd8401

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5329,7 +5329,8 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
53295329
&& (p->op_array->fn_flags & ZEND_ACC_HAS_TYPE_HINTS) == 0
53305330
&& ((p+1)->op == ZEND_JIT_TRACE_VM
53315331
|| (p+1)->op == ZEND_JIT_TRACE_END)
5332-
&& TRACE_FRAME_NUM_ARGS(call) < p->op_array->num_args
5332+
&& (TRACE_FRAME_NUM_ARGS(call) < 0
5333+
|| TRACE_FRAME_NUM_ARGS(call) < p->op_array->num_args)
53335334
&& !zend_jit_trace_opline_guard(&dasm_state, (p+1)->opline)) {
53345335
goto jit_failure;
53355336
}

0 commit comments

Comments
 (0)