I'm not familiar with this code at all, but the diff below would be
enough to keep libfreetype from the immediate crash. However, we'd need
the font file to be sure that it wouldn't crash somewhere a little more
down the execution path.

diff -Nurp freetype-2.4.8.orig/src/autofit/afcjk.c 
freetype-2.4.8/src/autofit/afcjk.c
--- freetype-2.4.8.orig/src/autofit/afcjk.c     2012-04-20 18:28:29.935273458 
-0500
+++ freetype-2.4.8/src/autofit/afcjk.c  2012-04-20 18:32:44.215279502 -0500
@@ -1115,7 +1115,7 @@
             else
               edge2 = seg2->edge;
 
-            if ( is_serif )
+            if ( is_serif && edge2 )
             {
               edge->serif   = edge2;
               edge2->flags |= AF_EDGE_SERIF;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/984541

Title:
  compiz crashed with SIGSEGV in af_cjk_hints_compute_edges()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/984541/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to