Skip to content

Commit

Permalink
Fixed use-after-free in PHPUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Nov 23, 2020
1 parent 4cf3da7 commit 586ccfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/opcache/jit/zend_jit_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,9 @@ static int zend_jit_trace_deoptimization(dasm_State **Dst,
} else if (reg == ZREG_THIS) {
if (polymorphic_side_trace) {
ssa->var_info[i].delayed_fetch_this = 1;
if (stack) {
SET_STACK_REG(stack, i, ZREG_THIS);
}
} else if (!zend_jit_load_this(Dst, EX_NUM_TO_VAR(i))) {
return 0;
}
Expand Down

0 comments on commit 586ccfd

Please sign in to comment.