Skip to content

Applying non-zero offset 36 to null pointer in zend_jit.c #13834

Closed
@YuanchengJiang

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions