File CVE-2014-9745.patch of Package freetype2
--- freetype-2.5.0.1/src/type1/t1load.c 2013-06-11 16:41:21.000000000 +0200
+++ freetype-2.5.0.1/src/type1/t1load.c 2015-09-23 07:55:36.940629495 +0200
@@ -1274,6 +1274,13 @@
{
charcode = (FT_Int)T1_ToInt( parser );
T1_Skip_Spaces( parser );
+
+ /* protect against invalid charcode */
+ if ( cur == parser->root.cursor )
+ {
+ parser->root.error = FT_THROW( Unknown_File_Format );
+ return;
+ }
}
cur = parser->root.cursor;