[GIT-PULLS] [php-src] PR #23323: Stop grapheme_strrev from using UBRK_DONE as a byte index
[email protected] (iliaal)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23323 Author: iliaal grapheme_strrev() called ubrk_previous() inside a loop whose condition still saw the previous position, so UBRK_DONE (-1) was used as a byte offset and overwrote the result NUL. Stop when the iterator is done, and NUL-terminate the zend_string_alloc() buffer.