[php-src] Issue #13834: Applying non-zero offset 36 to null pointer in zend_jit.c
| From: | YuanchengJiang | Date: | Fri, 29 Mar 2024 06:26:11 +0000 |
| Subject: | [php-src] Issue #13834: Applying non-zero offset 36 to null pointer in zend_jit.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246669@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13834
Author: YuanchengJiang
### Description
Run the following test code(phpt):
```
--TEST--
Applying non-zero offset 36 to null pointer in zend_jit.c
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit=function
--FILE--
<?php
$root = str_replace('.php', "", __FILE__);
$base = basename( $root );
include "php_cli_server.inc";
?>
--EXTENSIONS--
opcache
--CONFLICTS--
server
--EXPECT--
```
php_cli_server.inc: https://github.com/php/php-src/blob/master/ext/opcache/tests/php_cli_server.inc
Resulted in this output:
```
/php-src/ext/opcache/jit/zend_jit.c:2619:60: runtime error: applying non-zero offset 36 to null
pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/opcache/jit/zend_jit.c:2619:60
in
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04