Skip to content

Commit 462dc9d

Browse files
committed
Don't specify ce for MAY_BE_REF STATIC_PROP_FETCH
This is unlikely to matter in practice (due to the short lifetime), but we should not specify a CE for a potential ref result. Fixes oss-fuzz #46810.
1 parent dc374a0 commit 462dc9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/Optimizer/zend_inference.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3455,6 +3455,7 @@ static zend_always_inline zend_result _zend_update_type_info(
34553455
if (opline->opcode != ZEND_FETCH_STATIC_PROP_R
34563456
&& opline->opcode != ZEND_FETCH_STATIC_PROP_IS) {
34573457
tmp |= MAY_BE_REF | MAY_BE_INDIRECT;
3458+
ce = NULL;
34583459
} else {
34593460
if (!result_may_be_separated(ssa, ssa_op)) {
34603461
tmp &= ~MAY_BE_RC1;

0 commit comments

Comments
 (0)