[php-src] PR #18110: Fix GH-18107: Opcache CFG jmp optimization with try-finally breaks the exception table
| From: | nielsdos | Date: | Tue, 18 Mar 2025 22:35:44 +0000 |
| Subject: | [php-src] PR #18110: Fix GH-18107: Opcache CFG jmp optimization with try-finally breaks the exception table | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31131@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18110
Author: nielsdos
If there's a try-finally where the try_op starts on a basic block with a single JMP, and the
JMP optimization causes that basic block to become unreachable, then we update try_op.
In this case, there is no catch_op, so try_op is erroneously set to 0, we should instead set it to
b->start.