[php-src] PR #25848: ext/standard: Release lc_needle on OOM in php_str_to_str_i_ex()
| From: | iliaal | Date: | Fri, 27 Nov 2026 17:55:41 +0000 |
| Subject: | [php-src] PR #25848: ext/standard: Release lc_needle on OOM in php_str_to_str_i_ex() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41132@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25848
Author: iliaal
If
zend_string_safe_falloc() fails under memory_limit, the early return in
php_str_to_str_i_ex() leaks the lowercased needle.