[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Apr 3 15:45:05 PDT 2007


 src/harfbuzz-open.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 4005078e67082b5178a0aee0ba48fa1d6c893db2 (from d3ca6f355bdd2ea67b54f9b2f01a713390905596)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Apr 3 18:44:42 2007 -0400

    [harfbuzz-open] Fix GDEF type-2 class lookup array overflow
    
    Reviewed by Simon Hausmann

diff --git a/src/harfbuzz-open.c b/src/harfbuzz-open.c
index 8689481..ffb5250 100644
--- a/src/harfbuzz-open.c
+++ b/src/harfbuzz-open.c
@@ -1164,7 +1164,7 @@ static HB_Error  Get_Class1( HB_ClassDef
     *index = 0;
 
   if ( glyphID >= cdf1->StartGlyph &&
-       glyphID <= cdf1->StartGlyph + cdf1->GlyphCount )
+       glyphID < cdf1->StartGlyph + cdf1->GlyphCount )
   {
     *class = cva[glyphID - cdf1->StartGlyph];
     return HB_Err_Ok;



More information about the HarfBuzz mailing list