aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetype/CVE-2016-10244.patch
blob: 3593d47660cefa328b0519191ad0608e20b32137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git src/type1/t1load.c src/type1/t1load.c
index a53037c..609bd53 100644
--- src/type1/t1load.c
+++ src/type1/t1load.c
@@ -1776,6 +1776,12 @@
       }
     }
 
+    if ( !n )
+    {
+      error = FT_THROW( Invalid_File_Format );
+      goto Fail;
+    }
+
     loader->num_glyphs = n;
 
     /* if /.notdef is found but does not occupy index 0, do our magic. */
-- 
2.8.5