tagoh pushed to fontconfig (master). "Fix SIGFPE (#1203118)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 06:26:16 UTC 2015


>From b49c40ab8ca32e77fc9438728a4ebed5652194a5 Mon Sep 17 00:00:00 2001
From: Akira TAGOH <tagoh at redhat.com>
Date: Mon, 30 Mar 2015 15:25:48 +0900
Subject: Fix SIGFPE (#1203118)


diff --git a/fontconfig-fix-SIGFPE.patch b/fontconfig-fix-SIGFPE.patch
new file mode 100644
index 0000000..dfb4e36
--- /dev/null
+++ b/fontconfig-fix-SIGFPE.patch
@@ -0,0 +1,25 @@
+From 7bc07cf6c2a5685ab95f146f5af2b3bcd5f5864d Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira at tagoh.org>
+Date: Mon, 30 Mar 2015 15:18:44 +0900
+Subject: [PATCH] Fix SIGFPE
+
+---
+ src/fcrange.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/fcrange.c b/src/fcrange.c
+index 37cf067..9b1b67b 100644
+--- a/src/fcrange.c
++++ b/src/fcrange.c
+@@ -204,7 +204,7 @@ FcRangeHash (const FcRange *r)
+ {
+     FcRange c = FcRangeCanonicalize (r);
+     int b = (int) (c.u.d.begin * 100);
+-    int e = (int) (c.u.d.end * 100);
++    int e = FcDoubleCmpEQ (c.u.d.end, DBL_MAX) ? INT_MAX : (int) (c.u.d.end * 100);
+ 
+     return b ^ (b << 1) ^ (e << 9);
+ }
+-- 
+2.1.0
+
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/fontconfig.git/commit/?h=master&id=b49c40ab8ca32e77fc9438728a4ebed5652194a5


More information about the scm-commits mailing list