File CVE-2012-1141.patch of Package freetype2

From d9c1659610f9cd5e103790cb5963483d65cf0d2d Mon Sep 17 00:00:00 2001
From: Werner Lemberg <wl@gnu.org>
Date: Thu, 01 Mar 2012 14:15:00 +0000
Subject: [bdf] Fix Savannah bug #35658.

* src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
properly.
---
---
 src/bdf/bdflib.c |    7 +++++++
 1 file changed, 7 insertions(+)

Index: freetype-2.4.4/src/bdf/bdflib.c
===================================================================
--- freetype-2.4.4.orig/src/bdf/bdflib.c
+++ freetype-2.4.4/src/bdf/bdflib.c
@@ -521,6 +521,13 @@
 
     /* Initialize the list. */
     list->used = 0;
+    if ( list->size )
+    {
+      list->field[0] = (char*)empty;
+      list->field[1] = (char*)empty;
+      list->field[2] = (char*)empty;
+      list->field[3] = (char*)empty;
+    }
 
     /* If the line is empty, then simply return. */
     if ( linelen == 0 || line[0] == 0 )
openSUSE Build Service is sponsored by