[indic] Fix access past end of array

pull/46/head
Behdad Esfahbod 11 years ago
parent 73e23b0acf
commit e7ce50d9eb
  1. 7
      src/hb-ot-shape-complex-indic.cc

@ -1372,9 +1372,10 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
if (base == end && start < base &&
is_one_of (info[base - 1], FLAG (OT_ZWJ)))
base--;
while (start < base &&
is_one_of (info[base], (FLAG (OT_N) | HALANT_OR_COENG_FLAGS)))
base--;
if (base < end)
while (start < base &&
is_one_of (info[base], (FLAG (OT_N) | HALANT_OR_COENG_FLAGS)))
base--;
/* o Reorder matras:

Loading…
Cancel
Save