fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 src/fcrange.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7bc07cf6c2a5685ab95f146f5af2b3bcd5f5864d
Author: Akira TAGOH <akira@xxxxxxxxx>
Date:   Mon Mar 30 15:18:44 2015 +0900

    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);
 }
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig





[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux