Dear,

Commit 7403e055cd1463f38215ad9faedd61c3e1b66ac5 introduced an infinite
loop, this patch fixes it.

--
Tom.
>From e27c819388aa7e02b6bf26a101ac55aeef1bbd0e Mon Sep 17 00:00:00 2001
From: Tom 'TAsn' Hacohen <[email protected]>
Date: Mon, 30 May 2011 10:33:01 +0300
Subject: [PATCH] Fixed inifinite loop introduced in 7403e055cd1463f38215ad9faedd61c3e1b66ac5

k is the index, not j.
---
 src/hb-ot-layout-gpos-private.hh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hb-ot-layout-gpos-private.hh b/src/hb-ot-layout-gpos-private.hh
index d51a2b0..59750ab 100644
--- a/src/hb-ot-layout-gpos-private.hh
+++ b/src/hb-ot-layout-gpos-private.hh
@@ -1553,12 +1553,12 @@ fix_mark_attachment (hb_glyph_position_t *pos, unsigned int i, hb_direction_t di
   pos[i].y_offset += pos[j].y_offset;
 
   if (HB_DIRECTION_IS_FORWARD (direction))
-    for (unsigned int k = j; k < i; j++) {
+    for (unsigned int k = j; k < i; k++) {
       pos[i].x_offset -= pos[k].x_advance;
       pos[i].y_offset -= pos[k].y_advance;
     }
   else
-    for (unsigned int k = j + 1; k < i + 1; j++) {
+    for (unsigned int k = j + 1; k < i + 1; k++) {
       pos[i].x_offset += pos[k].x_advance;
       pos[i].y_offset += pos[k].y_advance;
     }
-- 
1.7.0.4

_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to