[php-src] PR #17584: Fix GH-17577: JIT packed type guard crash

From: Date: Sun, 26 Jan 2025 12:42:08 +0000
Subject: [php-src] PR #17584: Fix GH-17577: JIT packed type guard crash
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30519@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17584 Author: nielsdos When a guard check is created for a variable to check if it's a packed array, it is possible that there was no prior type check for that variable. This happens in the global scope for example when the variable aliases. In the test, this causes a dereference of address 8 because the integer element in $a is interpreted as an array address. This patch adds a type check if a prior one was not inserted, which should only be possible is NO_ALIAS is set (hence the assertion). In this case we also cannot set the stack type nor clear the MAY_BE_GUARD flag due to the aliasing.

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