[PATCH] libXinerama: Set number to 0 on error.

Tobias Stoeckmann tobias at stoeckmann.org
Mon Jan 23 18:00:34 UTC 2017


On Mon, Jan 23, 2017 at 11:52:13AM -0500, Adam Jackson wrote:
> Not that any caller has likely made this mistake, but you want an if
> (number) before this, otherwise you turn a protocol error into a
> segfault.

If a caller supplies NULL, a segfault would always occur because the
pointer is never checked for NULL.


Tobias


More information about the xorg-devel mailing list