File u_03-Fix-off-by-one-error-in-box-copying-routine.patch of Package xf86-video-modesetting.1041

From: Egbert Eich <eich@suse.de>
Date: Wed Aug 26 09:03:34 2015 +0200
Subject: [PATCH 3/6]Fix off-by-one error in box copying routine
Patch-mainline: to be upstreamed

References: bsc#942871
Signed-off-by: Egbert Eich <eich@suse.com>

Signed-off-by: Egbert Eich <eich@suse.de>
---
 src/driver.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/driver.c b/src/driver.c
index a88afa3..c089056 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -917,8 +917,8 @@ msUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf)
 	    break;
 
 	nrects = 0;
-	for (j = ty2; j >= ty1; j--) {
-	    for (i = tx2; i >= tx1; i--) {
+	for (j = ty2 - 1; j >= ty1; j--) {
+	    for (i = tx2 - 1; i >= tx1; i--) {
 		BoxRec box;
 
 		box.x1 = max(i * TILE, extents->x1);
openSUSE Build Service is sponsored by