projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51881a6
)
Fixed inifinite loop introduced in 7403e055cd1463f
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 30 May 2011 15:08:40 +0000
(11:08 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 30 May 2011 15:08:40 +0000
(11:08 -0400)
k is the index, not j.
Reported by Tom Hacohen.
src/hb-ot-layout-gpos-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-layout-gpos-private.hh
b/src/hb-ot-layout-gpos-private.hh
index
d51a2b0
..
59750ab
100644
(file)
--- 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;
}