[php-src] Issue #9335: mb_strimwidth segmentation fault when mb_strimwidth("あいうえお", 1, 3) in 8.2beta2

From: Date: Sun, 14 Aug 2022 16:21:44 +0000
Subject: [php-src] Issue #9335: mb_strimwidth segmentation fault when mb_strimwidth("あいうえお", 1, 3) in 8.2beta2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242220@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9335 Author: youkidearitai ### Description The following code: ```php <?php var_dump(mb_strimwidth("あいうえお", 1, 3));' ``` Resulted in this output: ``` Segmentation fault ``` But I expected this output instead: ``` string(3) "い" ``` PHP <= 8.1 works fine. Reproduced PHP 8.2 beta2 only ### PHP Version PHP 8.2.0 beta2 ### Operating System Ubuntu 20.04 on WSL2

« previous php.bugs (#242220) next »