Skip to content
Snippets Groups Projects
Commit 6f65ce98 authored by Julien Cristau's avatar Julien Cristau
Browse files

Fix 64-bit arithmetic bug in fbFetchTransformed.

Add patch by Francis Whittle from upstream bug#12398
(https://bugs.freedesktop.org/attachment.cgi?id=11896) to fix arithmetic
bug in fbFetchTransformed (causing X crashes on 64bit); closes: #444457.
parent 69a96426
No related branches found
No related tags found
No related merge requests found
pixman (0.9.5-3) unstable; urgency=low
* Add patch by Francis Whittle from upstream bug#12398
(https://bugs.freedesktop.org/attachment.cgi?id=11896) to fix arithmetic
bug in fbFetchTransformed (causing X crashes on 64bit); closes: #444457.
-- Julien Cristau <jcristau@debian.org> Tue, 16 Oct 2007 09:52:16 +0200
pixman (0.9.5-2) unstable; urgency=high
* High urgency for RC bugfix.
......
Fix 64-bit arithmetic bug.
This patch by Francis Whittle.
https://bugs.freedesktop.org/show_bug.cgi?id=12398
https://bugs.freedesktop.org/attachment.cgi?id=11896
Index: pixman/pixman/pixman-compose.c
===================================================================
--- pixman.orig/pixman/pixman-compose.c 2007-10-16 09:51:39.000000000 +0200
+++ pixman/pixman/pixman-compose.c 2007-10-16 09:51:54.000000000 +0200
@@ -3878,7 +3878,7 @@
idistx = 256 - distx;
idisty = 256 - disty;
- b = bits + (y1)*stride;
+ b = bits + (signed)((y1)*stride);
x_off = x1;
x1_out = (x1 < box.x1) | (x1 >= box.x2);
@@ -3944,7 +3944,7 @@
idistx = 256 - distx;
idisty = 256 - disty;
- b = bits + (y1)*stride;
+ b = bits + (signed)((y1)*stride);
x_off = x1;
tl = pixman_region_contains_point(pict->common.src_clip, x1, y1, &box)
01_maintainer-mode.diff
02_no-sse.diff
03_fbFetchTransformed_64bit_fix.diff
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment