From a499bdea5cc5097dec62eeafdef58d08ba534be0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 25 Aug 2011 22:46:21 +0200 Subject: [PATCH] [graphite2] Bail if grface is NULL --- src/hb-graphite2.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc index df97175b6..dfeab9fe3 100644 --- a/src/hb-graphite2.cc +++ b/src/hb-graphite2.cc @@ -227,6 +227,7 @@ hb_graphite_shape (hb_font_t *font, buffer->guess_properties (); hb_gr_font_data_t *data = _hb_gr_font_get_data (font); + if (!data->grface) return FALSE; unsigned int charlen; hb_glyph_info_t *bufferi = hb_buffer_get_glyph_infos (buffer, &charlen);