Skip to content

member access within null pointer in conversions.c #21161

Closed

Description

@chongwick

Description

The following code:

<?php
$v_17771 = AF_INET6;
$v_17772 = SOCK_DGRAM;
$v_17773 = SOL_UDP;
$v_17774 = socket_create($v_17771,$v_17772,$v_17773,);
$v_17775 = 'err';
($v_17775);
$v_17777 = IPPROTO_IPV6;
$v_17782 = IPPROTO_IPV6;
$v_17779 = array();
$v_17780 = socket_set_option($v_17774,$v_17777,$v_17782,$v_17779,);
$v_17783 = IPV6_PKTINFO;
$v_17788 = 0;
$v_17784 = array('addr' => $v_17784,'ifindex' => $v_17788,);
$v_17789 = socket_set_option($v_17774,$v_17782,$v_17783,$v_17784,);

Resulted in this output:

/home/w023dtc/nightly_php/php-src/ext/sockets/conversions.c:614:16: runtime error: member access within null pointer of type 'zend_string' (aka 'struct _zend_string')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/w023dtc/nightly_php/php-src/ext/sockets/conversions.c:614:16

PHP Version

nightly

Operating System

No response

Activity

  1. self-assigned this
    on Feb 8, 2026
  2. added a commit that references this issue on Feb 8, 2026
    8b8afe9
  3. added 3 commits that reference this issue on Feb 9, 2026
    1ff5eb4
    f037d49
    19ee3e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions