[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,6 +1372,7 @@ final_reordering_syllable (const hb_ot_shape_plan_t *plan,
if (base == end && start < base && if (base == end && start < base &&
is_one_of (info[base - 1], FLAG (OT_ZWJ))) is_one_of (info[base - 1], FLAG (OT_ZWJ)))
base--; base--;
if (base < end)
while (start < base && while (start < base &&
is_one_of (info[base], (FLAG (OT_N) | HALANT_OR_COENG_FLAGS))) is_one_of (info[base], (FLAG (OT_N) | HALANT_OR_COENG_FLAGS)))
base--; base--;