[php-src] PR #21037: Fix mb_ereg_search_getregs() NULL pointer dereference
| From: | vi3tL0u1s | Date: | Sun, 25 Jan 2026 14:44:47 +0000 |
| Subject: | [php-src] PR #21037: Fix mb_ereg_search_getregs() NULL pointer dereference | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34663@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21037
Author: vi3tL0u1s
Add NULL check for
MBREX(search_re) before calling onig_number_of_names()
in mb_ereg_search_getregs() to prevent crash when mb_eregi() invalidates
the regex cache.
Fixes GH-21036