1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 05:02:27 +02:00

Fixed use-after-free in PHPUnit tests

This commit is contained in:
Dmitry Stogov
2020-11-23 14:42:38 +03:00
parent 4cf3da7383
commit 586ccfdfd5

View File

@@ -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;
}