[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Sep 29 15:34:36 PDT 2008


 src/harfbuzz-gpos.c |    2 +-
 src/harfbuzz-gsub.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 204d20f47cfc114990f5f0941d4e019431b5b476
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Sep 29 18:34:14 2008 -0400

    Fix one GSUB and one GPOS looping bugs
    
    Backported from Pango.

diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c
index 0b1ba5b..1e796d1 100644
--- a/src/harfbuzz-gpos.c
+++ b/src/harfbuzz-gpos.c
@@ -5946,7 +5946,7 @@ static HB_Error  Position_CursiveChain ( HB_Buffer     buffer )
   HB_Position positions = buffer->positions;
 
   /* First handle all left-to-right connections */
-  for (j = 0; j < buffer->in_length; j--)
+  for (j = 0; j < buffer->in_length; j++)
   {
     if (positions[j].cursive_chain > 0)
       positions[j].y_pos += positions[j - positions[j].cursive_chain].y_pos;
diff --git a/src/harfbuzz-gsub.c b/src/harfbuzz-gsub.c
index a5439a5..b869fa0 100644
--- a/src/harfbuzz-gsub.c
+++ b/src/harfbuzz-gsub.c
@@ -4217,8 +4217,8 @@ static HB_Error  GSUB_Do_String_Lookup( HB_GSUBHeader*   gsub,
 
 	if ( error == HB_Err_Not_Covered )
 	  buffer->in_pos--;
-    }
-      while (buffer->in_pos);
+      }
+      while ((HB_Int) buffer->in_pos >= 0);
 
       return retError;
 



More information about the HarfBuzz mailing list