[indic] Fix access past end of array
This commit is contained in:
parent
73e23b0acf
commit
e7ce50d9eb
|
@ -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--;
|
||||||
|
|
Loading…
Reference in New Issue