summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/fontconfig/files/fontconfig-2.11.93-fix-sigfpe.patch')
-rw-r--r--media-libs/fontconfig/files/fontconfig-2.11.93-fix-sigfpe.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/media-libs/fontconfig/files/fontconfig-2.11.93-fix-sigfpe.patch b/media-libs/fontconfig/files/fontconfig-2.11.93-fix-sigfpe.patch
new file mode 100644
index 000000000000..e5a5558e2c49
--- /dev/null
+++ b/media-libs/fontconfig/files/fontconfig-2.11.93-fix-sigfpe.patch
@@ -0,0 +1,22 @@
+From 7bc07cf6c2a5685ab95f146f5af2b3bcd5f5864d Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira@tagoh.org>
+Date: Mon, 30 Mar 2015 15:18:44 +0900
+Subject: Fix SIGFPE
+
+
+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);
+ }
+--
+cgit v0.10.2
+