[xserver-commit] xserver/fb fbpixmap.c,1.15,1.16
Keith Packard
xserver-commit@pdx.freedesktop.org
Thu, 15 Jan 2004 01:10:50 -0800
Committed by: keithp
Update of /cvs/xserver/xserver/fb
In directory pdx:/tmp/cvs-serv19177/fb
Modified Files:
fbpixmap.c
Log Message:
2004-01-15 Keith Packard <keithp@keithp.com>
* fb/fbpixmap.c: (fbValidateDrawable):
Oops -- using uninitialized variable in FB_DEBUG code.
Index: fbpixmap.c
===================================================================
RCS file: /cvs/xserver/xserver/fb/fbpixmap.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- fbpixmap.c 2 Dec 2003 01:59:38 -0000 1.15
+++ fbpixmap.c 15 Jan 2004 09:10:48 -0000 1.16
@@ -386,9 +386,9 @@
/*
* Only validate contents allocated along with the header
*/
+ first = bits - stride;
if ((unsigned) ((char *) first - (char *) pDrawable) > 200)
return;
- first = bits - stride;
last = bits + stride * pDrawable->height;
if (!fbValidateBits (first, stride, FB_HEAD_BITS) ||
!fbValidateBits (last, stride, FB_TAIL_BITS))