[GIT-PULLS] [php-src] PR #23350: Bound getSingletonPos before reading the next separator

[email protected] (iliaal)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23350
Author: iliaal

getSingletonPos() read str[i+2] after the last '-' or '_' in a locale, one byte past the NUL for strings such as en-. Require i+2 to be inside the string. Output matches the unfixed parser unless that heap byte happens to be another separator; php/php-src#22498 closed for that reason.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.