[php-src] Issue #9017: A possible null pointer dereference.

From: Date: Fri, 15 Jul 2022 06:24:23 +0000
Subject: [php-src] Issue #9017: A possible null pointer dereference.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241931@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9017
Author: zhou1615

### Description

This bug is reported by a newly developed static tool, therefore it could be a false positive,
please confirm.

the function __php_stream_sock_open_from_socket_ will return NULL once _php_stream_alloc_rel_
returns NULL, however in the function _zif_stream_socket_pair_ of _ext/standard/streamsfuncs.c_
file, the return value of __php_stream_sock_open_from_socket_ is not checked before dereference,
which could lead to NULL pointer dereference.


### PHP Version

master

### Operating System

_No response_


Thread (1 message)

  • zhou1615
« previous php.bugs (#241931) next »