[PATCH] dix/resource: bug out if we get 0 type resource added
Colin Harrison
colin.harrison at virgin.net
Tue Feb 26 13:49:51 PST 2013
Hi,
As a follow up to part of the last entry in the closed Bugzilla...
https://bugs.freedesktop.org/show_bug.cgi?id=57448
I now use this patch...
--- ./Xext/save_xres.c 2012-11-05 21:11:15.070319535 +0000
+++ ./Xext/xres.c 2013-02-26 21:32:12.726008604 +0000
@@ -272,7 +272,7 @@
{
int *counts = (int *) cdata;
- counts[(type & TypeMask) - 1]++;
+ if ((type & TypeMask) != RT_NONE) counts[(type & TypeMask) - 1]++;
}
to avoid xrestop crashing the server...which has got to be a good thing?
Thanks,
Colin Harrison
More information about the xorg-devel
mailing list