[php-src] PR #22498: ext/intl: Fix locale singleton separator bounds check

From: Date: Sun, 28 Jun 2026 11:54:55 +0000
Subject: [php-src] PR #22498: ext/intl: Fix locale singleton separator bounds check
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36709@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22498 Author: kn1g78 getSingletonPos() checks whether the character two bytes after a locale separator is another separator, in order to detect singleton subtags. For locale strings ending with a separator, this can read past the end of the string. Guard the i + 2 access with the already computed string length before calling isIDSeparator(). This keeps the existing parsing behavior while avoiding the out-of-bounds read.

« previous php.git-pulls (#36709) next »