[php-src] Issue #12151: str_getcsv ending with escape zero segfualt
| From: | bukka | Date: | Thu, 07 Sep 2023 15:13:55 +0000 |
| Subject: | [php-src] Issue #12151: str_getcsv ending with escape zero segfualt | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245359@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12151
Author: bukka
### Description
This was reported by @dstogov in https://github.com/php/php-src/commit/aff46d75e12659b9babc8aa4a74e820f5f29bd68#commitcomment-126371916
```php
<?php
str_getcsv("y","","y","\000");
```
results in segfault
### PHP Version
PHP 8.3.0RC1
### Operating System
_No response_