diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index ffe4d03ae..68c32c43b 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -207,7 +207,7 @@ struct ContextualSubtable { hb_buffer_t *buffer = driver->buffer; - if (entry->data.markIndex != 0xFFFF && mark < buffer->len) + if (entry->data.markIndex != 0xFFFF) { const Lookup &lookup = subs[entry->data.markIndex]; hb_glyph_info_t *info = buffer->info;