mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: Fix block_pass JMP[N]Z optimization
This commit is contained in:
@@ -1228,7 +1228,7 @@ static zend_always_inline zend_basic_block *get_next_block(const zend_cfg *cfg,
|
||||
}
|
||||
next_block++;
|
||||
}
|
||||
while (next_block->len == 0 && !(next_block->flags & ZEND_BB_PROTECTED)) {
|
||||
while (next_block->len == 0 && !(next_block->flags & (ZEND_BB_TARGET|ZEND_BB_PROTECTED))) {
|
||||
next_block = cfg->blocks + next_block->successors[0];
|
||||
}
|
||||
return next_block;
|
||||
|
||||
14
ext/opcache/tests/oss-fuzz-472563272.phpt
Normal file
14
ext/opcache/tests/oss-fuzz-472563272.phpt
Normal file
@@ -0,0 +1,14 @@
|
||||
--TEST--
|
||||
OSS-Fuzz #472563272: Borked block_pass JMP[N]Z optimization
|
||||
--EXTENSIONS--
|
||||
opcache
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
--FILE--
|
||||
<?php
|
||||
false || (true ? true : false) || (false ? true : false) || true;
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
===DONE===
|
||||
Reference in New Issue
Block a user