summaryrefslogtreecommitdiff
path: root/src/sna/fb
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-18 09:38:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-18 09:40:09 +0100
commitbee1a14618797b3d3a1c1a20eb72644fa907c048 (patch)
treedeba1e47ae2a85a31226fe32d072f02736c54c1a /src/sna/fb
parent88cb1968b6dbf3edfa885da9503e91124af46007 (diff)
sna: Fix processing of the last fallback box
The evil typo caused us to misalign the clip boxes and run over a garbage array on 64-bit builds. Reported-by: Edward Sheldrake <ejsheldrake@gmail.com> Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52163 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/fb')
-rw-r--r--src/sna/fb/fbclip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/fb/fbclip.c b/src/sna/fb/fbclip.c
index 5a71b0cf..37011a72 100644
--- a/src/sna/fb/fbclip.c
+++ b/src/sna/fb/fbclip.c
@@ -73,7 +73,7 @@ fbClipBoxes(const RegionRec *region, const BoxRec *box, const BoxRec **end)
return &region->extents;
}
- c0 = (const BoxRec *)region->data + 1;
+ c0 = (const BoxRec *)(region->data + 1);
c1 = c0 + region->data->numRects;
if (c0->y2 <= box->y1) {