[php-src] Issue #15661: Access null pointer in Zend/Optimizer/zend_inference.c
| From: | YuanchengJiang | Date: | Fri, 30 Aug 2024 12:33:02 +0000 |
| Subject: | [php-src] Issue #15661: Access null pointer in Zend/Optimizer/zend_inference.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247644@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15661
Author: YuanchengJiang
### Description
The following code:
```php
<?php
require_once 'files/phar_oo_test.inc';
?>
```
Resulted in this output:
```
/php-src/Zend/Optimizer/zend_inference.c:5043:46: runtime error: applying non-zero offset 36 to null
pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
/php-src/Zend/Optimizer/zend_inference.c:5043:46
```
To reproduce:
```
-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable=1" -d
"opcache.enable_cli=1" -d "opcache.jit=1202"
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04