From be9e307a889e04d198042ad39949d3971232ab26 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 1 Dec 2017 12:36:26 -0800 Subject: [PATCH] [ot] Ensure layout in hb_ot_layout_table_get_lookup_count() --- src/hb-ot-layout.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 8fe153134..884588982 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -601,6 +601,7 @@ unsigned int hb_ot_layout_table_get_lookup_count (hb_face_t *face, hb_tag_t table_tag) { + if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return 0; switch (table_tag) { case HB_OT_TAG_GSUB: