[Fontconfig-bugs] [Bug 96609] Assertion failed: (dx > 0 && dy >= 0 && x1 <= x && x <= x2), function lerp, file fcweight.c, line 48.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 23 10:45:55 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=96609

Akira TAGOH <akira at tagoh.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |freedesktop at behdad.org

--- Comment #12 from Akira TAGOH <akira at tagoh.org> ---
Behdad, should FcWeightFromOpenType() fails if ot_weight is more than 999
right?

diff --git a/src/fcweight.c b/src/fcweight.c
index 1a3b608..2923c16 100644
--- a/src/fcweight.c
+++ b/src/fcweight.c
@@ -75,6 +75,8 @@ FcWeightFromOpenType (int ot_weight)
                case 9: ot_weight = 900; break;
            }
        }
+       if (ot_weight > 999)
+           return -1;

        for (i = 1; ot_weight > map[i].ot; i++)
          ;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20160623/bcea72dd/attachment.html>


More information about the Fontconfig-bugs mailing list