Fix indexing in unsafe-to-break marking for 'stch' feature

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4099
This commit is contained in:
Behdad Esfahbod 2017-11-08 17:04:31 -08:00
parent 822035ce73
commit c4f4c0a2fa
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ apply_stch (const hb_ot_shape_plan_t *plan,
}
else
{
buffer->unsafe_to_break (context, end + 1);
buffer->unsafe_to_break (context, end);
hb_position_t x_offset = 0;
for (unsigned int k = end; k > start; k--)
{