Skip to content

Commit 95d9e51

Browse files
committed
Check "ssa_op" before dereference (it may be NULL for opcache.jit=51)
1 parent 18cd80c commit 95d9e51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6656,6 +6656,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
66566656
&& (init_opline->opcode != ZEND_INIT_METHOD_CALL
66576657
|| init_opline->op1_type == IS_UNDEF
66586658
|| (!(p->info & ZEND_JIT_TRACE_FAKE_INIT_CALL)
6659+
&& ssa_op
66596660
&& (ssa_op-1)->op1_use >=0
66606661
&& ssa->var_info[(ssa_op-1)->op1_use].delayed_fetch_this))
66616662
&& (init_opline->opcode != ZEND_INIT_USER_CALL

0 commit comments

Comments
 (0)