diff options
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/src/sfnt/ttpost.c')
-rw-r--r-- | Build/source/libs/freetype2/freetype-src/src/sfnt/ttpost.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/src/sfnt/ttpost.c b/Build/source/libs/freetype2/freetype-src/src/sfnt/ttpost.c index 3277f1ec4fe..ef81e63a31c 100644 --- a/Build/source/libs/freetype2/freetype-src/src/sfnt/ttpost.c +++ b/Build/source/libs/freetype2/freetype-src/src/sfnt/ttpost.c @@ -326,7 +326,9 @@ goto Exit; /* check the number of glyphs */ - if ( num_glyphs > face->max_profile.numGlyphs || num_glyphs > 258 ) + if ( num_glyphs > face->max_profile.numGlyphs || + num_glyphs > 258 || + num_glyphs < 1 ) { error = FT_THROW( Invalid_File_Format ); goto Exit; |