[php-src] Issue #9248: Segmentation fault in mb_strimwidth()
| From: | garas | Date: | Thu, 04 Aug 2022 16:18:19 +0000 |
| Subject: | [php-src] Issue #9248: Segmentation fault in mb_strimwidth() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242128@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9248
Author: garas
### Description
The following code:
```php
<?php
echo mb_strimwidth('The quick brown fox', 0, 8);
```
Process crashed with SIGSEGV.
But I expected this output instead:
```
The quic
```
### PHP Version
git.master | released 2022-08-04 (3v4l.org)
### Operating System
_No response_