[indic] Fix infinite loop

Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=863044
This commit is contained in:
Behdad Esfahbod 2018-10-26 21:21:18 -07:00
parent 39bd07aed5
commit 79b2fa62ca
1 changed files with 1 additions and 1 deletions

View File

@ -789,7 +789,7 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
* We could use buffer->sort() for this, if there was no special
* reordering of pre-base stuff happening later...
*/
if (indic_plan->is_old_spec || end - base > 127)
if (indic_plan->is_old_spec || end - start > 127)
buffer->merge_clusters (base, end);
else
{