freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Missing glyphs in Opentype fonts in FreeType 2.4.0


From: Werner LEMBERG
Subject: Re: [ft-devel] Missing glyphs in Opentype fonts in FreeType 2.4.0
Date: Thu, 15 Jul 2010 18:28:26 +0200 (CEST)

> After this commit, I receive such kind of errors from tracing
> message.

Mmmh, I suspect this patch should fix the issue:


--- cffgload.c.old      2010-07-05 06:34:59.000000000 +0200
+++ cffgload.c  2010-07-15 18:26:45.000000000 +0200
@@ -1344,7 +1344,7 @@
           /* instruction).  Additionally, there must be space for  */
           /* `num_hints' bits.                                     */
 
-          if ( ( ip + 1 + ( ( decoder->num_hints + 7 ) >> 3 ) ) >= limit )
+          if ( ( ip + ( ( decoder->num_hints + 7 ) >> 3 ) ) >= limit )
             goto Syntax_Error;
 
           if ( hinter )


I'm obviously bad at handling limits...

In case this is not sufficient, we have a problem...


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]