[php-src] PR #11251: Fix GH-11245 (In some specific cases SWITCH with one default statement will cause segfault)

From: Date: Tue, 16 May 2023 16:23:46 +0000
Subject: [php-src] PR #11251: Fix GH-11245 (In some specific cases SWITCH with one default statement will cause segfault)
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22523@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11251 Author: nielsdos The block optimizer pass allows the use of sources of the preceding block if the block is a follower and not a target. This causes issues when trying to remove FREE instructions: if the source is not in the block of the FREE, then the FREE and source are still removed. Therefore the other successor blocks, which must consume or FREE the temporary, will still contain the FREE opline. This opline will now refer to a temporary that doesn't exist anymore, which most of the time results in a crash. For these kind of non-local scenarios, we'll let the SSA based optimizations handle those cases.

« previous php.git-pulls (#22523) next »