[php-src] PR #22252: intl: Fix memory leak in IntlChar::getFC_NFKC_Closure()
| From: | iliaal | Date: | Sun, 07 Jun 2026 20:41:15 +0000 |
| Subject: | [php-src] PR #22252: intl: Fix memory leak in IntlChar::getFC_NFKC_Closure() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36338@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22252
Author: iliaal
If the final UTF-16 to UTF-8 conversion fails, INTL_CHECK_STATUS returns before the closure buffer
is freed. It is freed right after the conversion consumes it, as the sibling branch above already
does. The conversion does not fail for valid closure output, so this is hardening; the same gap
exists on PHP-8.5 (on 8.4 the file is the older uchar.c).