[indic] Fix access past end of array

This commit is contained in:
Behdad Esfahbod 2014-07-16 12:30:39 -04:00
parent 73e23b0acf
commit e7ce50d9eb
1 changed files with 4 additions and 3 deletions

View File

@ -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: