[PATCH:xserver] Avoid segfault in CloseWellKnownConnections when using -displayfd

Keith Packard keithp at keithp.com
Fri Jan 1 23:42:41 PST 2016


Alan Coopersmith <alan.coopersmith at oracle.com> writes:

> When -displayfd is looping through the possible display ids to use,
> if it can't open all the listening sockets for one (say when :0 is
> already in use), it calls CloseWellKnownConnections to close all
> the ListenTransConns entries before the point that ListenTransFds
> was allocated & initialized, so CloseWellKnownConnections would
> segfault trying to read entries from a NULL ListenTransFds pointer.
>
> Introduced by commit 7b02f0b8
>
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20160101/8577203a/attachment.sig>


More information about the xorg-devel mailing list