From e74a2847ddcb3b4c1675efaaa923e78556277dff Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Sat, 9 May 2009 08:34:12 -0400 Subject: [PATCH] Fix divide-by-zero crash --- pixman/pixman-matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixman/pixman-matrix.c b/pixman/pixman-matrix.c index 8e3a3c0..79dae8d 100644 --- a/pixman/pixman-matrix.c +++ b/pixman/pixman-matrix.c @@ -93,7 +93,7 @@ pixman_transform_point(const struct pixman_transform *transform, v[j] += partial >> 2; } } - if (!v[2]) + if (!(v[2] >> 16)) return FALSE; for (j = 0; j < 2; j++) { -- 2.7.4