[php-src] Issue #15869: Segmentation fault (stack overflow) in Zend
| From: | YuanchengJiang | Date: | Fri, 13 Sep 2024 06:00:56 +0000 |
| Subject: | [php-src] Issue #15869: Segmentation fault (stack overflow) in Zend | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247772@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15869
Author: YuanchengJiang
### Description
The following code:
```php
<?php
function test($vars) {
}
function foo() {
foreach ($array as $value) {
try {
try {
foreach ($array as $_) {
}
} finally {
throw new Exception;
}
} catch (Exception $e) { }
}
}
for ($i=0; $fusion < 550; $i++) {
$array = array($array);
}
```
Resulted in this output:
```
Segmentation fault (core dumped)
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04