[php-src] Issue #11028: Heap Buffer Overflow in zval_undefined_cv.
| From: | Changochen | Date: | Fri, 07 Apr 2023 01:47:52 +0000 |
| Subject: | [php-src] Issue #11028: Heap Buffer Overflow in zval_undefined_cv. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244133@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11028
Author: Changochen
### Description
The following code:
```php
<?php
$c = (function () {
[
...($r = (function () {
try {
yield $a => 0;
} finally {
return [];
}
})()),
];
})()[0];
```
with
USE_TRACKED_ALLOC=1 USE_ZEND_ALLOC=0
Resulted in this output:
```
heap-buffer-overflow read
```
### PHP Version
PHP 8.3.0-dev
### Operating System
_No response_