1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 07:32:54 +02:00
Files
archived-php-src/ext/posix
Ilija Tovilo 66e2aa7255 Fix use-of-uninitialized-value when calling php_posix_stream_get_fd (#11694)
Passing a double pointer to php_stream_cast means the caller of
php_posix_stream_get_fd will never receive the actual value. Moreover,
php_posix_stream_get_fd may only write the low sizeof(php_socket_t) bytes of fd,
so we need to initialize the upper bytes to 0 to avoid partial
use-of-uninitialized-value.
2023-07-13 15:21:36 +02:00
..