xserver/hw/xfree86
Jamey Sharp 4b9600a416 Make WriteEventsToClient/WriteToClient no-op on fake or dead clients.
This matches the test in TryClientEvents, and is a superset of tests
done by the callers of these functions. The consequence of forgetting
these tests is a server crash, so they're always desirable. In my
opinion, it's better to not require the callers to remember to do these
checks.

For callers that don't do very much work before calling WriteToClient or
WriteEventsToClient, I've removed the redundant checks.

hw/xquartz/xpr/appledri.c has an interesting case: While its check for
"client == NULL" appears redundant with the test in WriteEventsToClient,
it dereferences client to get the sequence number.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=27497
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-05-19 12:32:34 -07:00
..
common Only link Xorg with libconfig.la 2010-05-17 09:41:16 -07:00
ddc Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
dixmods Make WriteEventsToClient/WriteToClient no-op on fake or dead clients. 2010-05-19 12:32:34 -07:00
doc xfree86: Fix reference to SGML entities 2010-04-26 11:35:53 -05:00
dri Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
dri2 Make WriteEventsToClient/WriteToClient no-op on fake or dead clients. 2010-05-19 12:32:34 -07:00
exa Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
fbdevhw Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
i2c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
int10 Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
loader Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
modes Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
os-support Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
parser xfree86: check for NULL pointer before dereferences it in parser code 2010-04-21 18:07:17 +03:00
ramdac Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
shadowfb Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
utils Fix .man.N targets for AM_SILENT_RULES 2010-03-22 00:45:55 -05:00
vbe Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
vgahw Quit using clientErrorValue in dix/colormap.c. 2010-05-13 17:14:07 -07:00
x86emu Convert x86emu fixed size int typedefs to use stdint types 2010-04-07 16:18:24 -07:00
xaa Replace dixChangeGC with calls directly to the right variant. 2010-05-13 17:14:07 -07:00
xf8_16bpp Update several of my and/or Red Hat's licenses to standard form. 2009-05-14 07:02:44 -04:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Fix relink targets for silent rules 2010-03-22 00:45:52 -05:00
xorgconf.cpp Update xorg.conf man page & sample for changes in Xorg 1.7 2009-09-14 16:03:18 +10:00