--- freetype-2.5.5/src/autofit/afglobal.c~ 2014-11-19 23:36:25.000000000 +0200 +++ freetype-2.5.5/src/autofit/afglobal.c 2015-08-02 18:11:55.178634491 +0300 @@ -454,6 +454,8 @@ af_face_globals_is_digit( AF_FaceGlobals globals, FT_UInt gindex ) { + if ( !globals ) + return (FT_Bool)0; if ( gindex < (FT_ULong)globals->glyph_count ) return (FT_Bool)( globals->glyph_styles[gindex] & AF_DIGIT );