From dea9377a257a402b2c7fe4a96c958d951a7d4579 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 (cherry picked from commit f4956faab9ccf9aba6cf9603f4489f5dad19a347) --- mi/mibitblt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mi/mibitblt.c b/mi/mibitblt.c index 49e17bde6..6e0055758 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<