[php-src] PR #16953: Fix GH-15208: Segfault with breakpoint map and phpdbg_clear()
| From: | nielsdos | Date: | Tue, 26 Nov 2024 20:24:28 +0000 |
| Subject: | [php-src] PR #16953: Fix GH-15208: Segfault with breakpoint map and phpdbg_clear() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29787@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16953
Author: nielsdos
It crashes because it's gonna try accessing the breakpoint which was cleared by user code in
phpdbg_clear();. Not all breakpoint data was properly cleaned.
Replaces https://github.com/php/php-src/pull/15243
@devnexen It might still be worthwhile to add some extra exceptions to the phpdbg_break_* methods to
make sure that an empty string cannot be used as a breakpoint, but that is not the root cause of
this issue and may be master-only material.