[php-src] PR #18578: fix: dangling opline in ZEND_INIT_ARRAY

From: Date: Fri, 16 May 2025 21:38:10 +0000
Subject: [php-src] PR #18578: fix: dangling opline in ZEND_INIT_ARRAY
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31697@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18578 Author: morrisonlevi This causes problems if an allocation profiler decides to walk the stack, or if the engine itself OOMs on this opcode, and it tries to print file and line information. This is similar to #12648 and #12758. Targeting PHP 8.3. I don't have a reproducer for this one yet. You can see from prior issues that you have to manipulate the frames and such, so it's a bit tricky. I have two customer crash reports with ZEND_INIT_ARRAY_SPEC_TMP_UNUSED_HANDLER with the else branch taken (the zend_new_array path), so I know it's reachable, I just haven't figured out exactly how to do reproduce it yet.

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