Skip to content

Commit 586ccfd

Browse files
committed
Fixed use-after-free in PHPUnit tests
1 parent 4cf3da7 commit 586ccfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,6 +3245,9 @@ static int zend_jit_trace_deoptimization(dasm_State **Dst,
32453245
} else if (reg == ZREG_THIS) {
32463246
if (polymorphic_side_trace) {
32473247
ssa->var_info[i].delayed_fetch_this = 1;
3248+
if (stack) {
3249+
SET_STACK_REG(stack, i, ZREG_THIS);
3250+
}
32483251
} else if (!zend_jit_load_this(Dst, EX_NUM_TO_VAR(i))) {
32493252
return 0;
32503253
}

0 commit comments

Comments
 (0)