From f4956faab9ccf9aba6cf9603f4489f5dad19a347 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 4 Jan 2012 07:01:19 +0000 Subject: mi/mibitblt: Fix an overflow bug of bit shift. When depth equal to 32 and planeMask equal to 0, the overflow will occur and cause the pixmap can't be cleared. There are some test cases in XTS hit this bug, and this fix can eliminate the corresponding failures. Signed-off-by: Zhigang Gong Reviewed-by: Adam Jackson Signed-off-by: Keith Packard --- mi/mibitblt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mi/mibitblt.c b/mi/mibitblt.c index 2dfff1451..fc6eb8d6e 100644 --- a/mi/mibitblt.c +++ b/mi/mibitblt.c @@ -648,7 +648,7 @@ miGetImage( DrawablePtr pDraw, int sx, int sy, int w, int h, depth = pDraw->depth; if(format == ZPixmap) { - if ( (((1<