[php-src] Issue #8360: mbstring: UTF-8 sequences with out-of-bounds follow bytes are no longer substituted correctly
| From: | cmb69 | Date: | Wed, 13 Apr 2022 16:13:05 +0000 |
| Subject: | [php-src] Issue #8360: mbstring: UTF-8 sequences with out-of-bounds follow bytes are no longer substituted correctly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240935@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8360
Comment Author: cmb69
Indeed, this looks wrong.
UConverter agrees:
````php
$converter = new UConverter("UTF-8", "UTF-8");
var_dump($converter->convert("\xDF\xC0"));
var_dump($converter->convert("\xEF\xBF\xC0"));
var_dump($converter->convert("\xF4\x8F\xBF\xC0"));
````
````
string(6) "��"
string(6) "��"
string(6) "��"
````