Blame SOURCES/freetype-2.4.11-CVE-2014-9661b.patch

43e195
From 42fcd6693ec7bd6ffc65ddc63e74287a65dda669 Mon Sep 17 00:00:00 2001
43e195
From: Werner Lemberg <wl@gnu.org>
43e195
Date: Sat, 22 Nov 2014 11:44:33 +0000
43e195
Subject: [type42] Allow only embedded TrueType fonts.
43e195
43e195
This is a follow-up to Savannah bug #43659.
43e195
43e195
* src/type42/t42objs.c (T42_Face_Init): Exclusively use the
43e195
`truetype' font driver for loading the font contained in the `sfnts'
43e195
array.
43e195
---
43e195
diff --git a/src/type42/t42objs.c b/src/type42/t42objs.c
43e195
index 7a9cb57..915e81f 100644
43e195
--- a/src/type42/t42objs.c
43e195
+++ b/src/type42/t42objs.c
43e195
@@ -291,7 +291,9 @@
43e195
       FT_Open_Args  args;
43e195
 
43e195
 
43e195
-      args.flags       = FT_OPEN_MEMORY;
43e195
+      args.flags       = FT_OPEN_MEMORY | FT_OPEN_DRIVER;
43e195
+      args.driver      = FT_Get_Module( FT_FACE_LIBRARY( face ),
43e195
+                                        "truetype" );
43e195
       args.memory_base = face->ttf_data;
43e195
       args.memory_size = face->ttf_size;
43e195
 
43e195
--
43e195
cgit v0.9.0.2