[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
Fri Jul 1 19:59:26 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96609
Tony <tc01 at 1000linesofcode.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #14 from Tony <tc01 at 1000linesofcode.com> ---
Thanks Akira for your help,
What you mentioned is correct, except it is values over 1000 instead of 999
that will trigger the assertion.
When I adjust the code and restored one line of code from a previous version it
fixes the issue. Patch below:
Revert a 2.12 change in fcweight.c that introduced the bug
--- src/fcweight.c.orig 2016-07-01 14:58:33.000000000 -0400
+++ src/fcweight.c 2016-07-01 14:58:56.000000000 -0400
@@ -56,7 +56,7 @@
/* Loosely based on WPF Font Selection Model's advice. */
- if (ot_weight < 0)
+ if (ot_weight < 0 || ot_weight >1000)
return -1;
else if (1 <= ot_weight && ot_weight <= 9)
{
--
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/20160701/1db135d1/attachment.html>
More information about the Fontconfig-bugs
mailing list