mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 17:44:06 +01:00
[indic] Fix access past end of array
This commit is contained in:
1 parent
73e23b0acf
commit
e7ce50d9eb
1 file changed
+4
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user