Fix bug introduced in 9b0b40b3c1

Also discovered by msan bot.
This commit is contained in:
Behdad Esfahbod 2018-09-30 17:48:55 +02:00
parent 247756a7d8
commit 5c65ed800d
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
hb_glyph_position_t *pos = buffer->pos;
for (unsigned int idx = 0; idx < count;)
{
if (!(buffer->cur().mask & kern_mask))
if (!(info[idx].mask & kern_mask))
{
idx++;
continue;