Segfault on mysqlnd stream cast

From: Date: Sat, 03 Aug 2013 17:51:32 +0000
Subject: Segfault on mysqlnd stream cast
Groups: php.internals 
Request: Send a blank email to internals+get-68363@lists.php.net to get a copy of this message
Hey Johannes, could you take a look at: https://gist.github.com/anonymous/6143477 You can reproduce in 5.5 with: sapi/cli/php ext/mysqli/tests/mysqli_poll_kill.php main/streams/cast.c:306 is: if (php_stream_is_filtered(stream)) { but php_stream_is_filtered is just a macro that isn't expecting stream to be null and you get the segfault there because it is trying to dereference it. We could just add a null check, of course, but I think the problem is in mysqlnd. mysqlnd_stream_array_to_fd_set() shouldn't be trying to cast null streams. -Rasmus

« previous php.internals (#68363) next »