[php-src] Issue #21161: member access within null pointer in conversions.c

From: Date: Sun, 08 Feb 2026 14:10:52 +0000
Subject: [php-src] Issue #21161: member access within null pointer in conversions.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251669@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/21161 Author: chongwick ### Description The following code: ```php <?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 ```plain nightly ``` ### Operating System _No response_

« previous php.bugs (#251669) next »