Hello community,

here is the log from the commit of package freetype2 for 
openSUSE:12.1:Update:Test checked in at 2011-12-19 17:48:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update:Test/freetype2 (Old)
 and      /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "freetype2", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:12.1:Update:Test/freetype2/freetype2.changes     
2011-12-19 17:48:21.000000000 +0100
+++ /work/SRC/openSUSE:12.1:Update:Test/.freetype2.new/freetype2.changes        
2011-12-19 17:48:24.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Dec 16 15:43:18 CET 2011 - [email protected]
+
+from evergreen:
+- bnc730124_CVE-2011-3439.patch:
+  FreeType allows remote attackers to execute arbitrary code or cause a
+  denial of service (memory corruption) via a crafted font.
+  (CVE-2011-3439, bnc#730124)
+
+-------------------------------------------------------------------

New:
----
  bnc730124_CVE-2011-3439.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ freetype2.spec ++++++
--- /var/tmp/diff_new_pack.wDLNrn/_old  2011-12-19 17:48:24.000000000 +0100
+++ /var/tmp/diff_new_pack.wDLNrn/_new  2011-12-19 17:48:24.000000000 +0100
@@ -15,11 +15,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-
 Name:           freetype2
-License:        Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
-Group:          System/Libraries
 BuildRequires:  pkg-config
 BuildRequires:  zlib-devel
 # bug437293
@@ -28,8 +24,10 @@
 %endif
 #
 Version:        2.4.7
-Release:        1
+Release:        0
 Summary:        A TrueType Font Library
+License:        Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
+Group:          System/Libraries
 Url:            http://www.freetype.org
 Source0:        
http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
 Source1:        
http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
@@ -39,6 +37,7 @@
 Patch10:        freetype2-no_rpath.patch
 Patch308961:    bugzilla-308961-cmex-workaround.patch
 Patch200:       freetype2-subpixel.patch
+Patch1020:      bnc730124_CVE-2011-3439.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -46,8 +45,8 @@
 version also contains an autohinter for producing improved output.
 
 %package -n libfreetype6
-License:        Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
 Summary:        A TrueType Font Library
+License:        Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
 Group:          System/Libraries
 Obsoletes:      freetype2 < 2.3.10
 Provides:       freetype2 = 2.3.10
@@ -57,8 +56,8 @@
 version also contains an autohinter for producing improved output.
 
 %package devel
-License:        GPLv2+ ; Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
 Summary:        Development environment for the freetype2 TrueType font library
+License:        GPL-2.0+ ; Freetype License (BSD-like). See 
http://freetype.sourceforge.net/FTL.TXT
 Group:          Development/Libraries/C and C++
 Requires:       libfreetype6 = %{version}
 Requires:       zlib-devel
@@ -86,6 +85,7 @@
 %if %{enable_subpixel_rendering}
 %patch200 -p 1 -b .subpixel
 %endif
+%patch1020 -p1
 
 %build
 %ifarch arm

++++++ ft2demos.spec ++++++
--- /var/tmp/diff_new_pack.wDLNrn/_old  2011-12-19 17:48:24.000000000 +0100
+++ /var/tmp/diff_new_pack.wDLNrn/_new  2011-12-19 17:48:24.000000000 +0100
@@ -15,16 +15,14 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-
 Name:           ft2demos
 Version:        2.4.7
-Release:        1
-License:        GPLv2+
+Release:        0
 Summary:        Freetype2 Utilities and Demo Programs
+License:        GPL-2.0+
+Group:          Productivity/Publishing/Other
 %define freetype_version %{version}
 Url:            http://www.freetype.org
-Group:          Productivity/Publishing/Other
 Source0:        
http://savannah.nongnu.org/download/freetype/freetype-%{version}.tar.bz2
 Source1:        
http://savannah.nongnu.org/download/freetype/ft2demos-%{version}.tar.bz2
 Patch9:         fix-build.patch




++++++ bnc730124_CVE-2011-3439.patch ++++++
Index: freetype-2.4.4/src/cid/cidload.c
===================================================================
--- freetype-2.4.4.orig/src/cid/cidload.c
+++ freetype-2.4.4/src/cid/cidload.c
@@ -110,7 +110,7 @@
         CID_FaceDict  dict;
 
 
-        if ( parser->num_dict < 0 )
+        if ( parser->num_dict < 0 || parser->num_dict >= cid->num_dicts )
         {
           FT_ERROR(( "cid_load_keyword: invalid use of `%s'\n",
                      keyword->ident ));
@@ -158,7 +158,7 @@
     FT_Fixed      temp_scale;
 
 
-    if ( parser->num_dict >= 0 )
+    if ( parser->num_dict >= 0 && parser->num_dict < face->cid.num_dicts )
     {
       dict   = face->cid.font_dicts + parser->num_dict;
       matrix = &dict->font_matrix;
@@ -249,7 +249,7 @@
     CID_FaceDict  dict;
 
 
-    if ( parser->num_dict >= 0 )
+    if ( parser->num_dict >= 0 && parser->num_dict < face->cid.num_dicts )
     {
       dict = face->cid.font_dicts + parser->num_dict;
 
@@ -413,12 +413,25 @@
       FT_Byte*      p;
 
 
+      /* Check for possible overflow. */
+      if ( num_subrs == FT_UINT_MAX )
+      {
+        error = CID_Err_Syntax_Error;
+        goto Fail;
+      }
+
       /* reallocate offsets array if needed */
       if ( num_subrs + 1 > max_offsets )
       {
         FT_UInt  new_max = FT_PAD_CEIL( num_subrs + 1, 4 );
 
 
+        if ( new_max <= max_offsets )
+        {
+          error = CID_Err_Syntax_Error;
+          goto Fail;
+        }
+
         if ( FT_RENEW_ARRAY( offsets, max_offsets, new_max ) )
           goto Fail;
 
@@ -436,6 +449,11 @@
 
       FT_FRAME_EXIT();
 
+      /* offsets must be ordered */
+      for ( count = 1; count <= num_subrs; count++ )
+        if ( offsets[count - 1] > offsets[count] )
+          goto Fail;
+
       /* now, compute the size of subrs charstrings, */
       /* allocate, and read them                     */
       data_len = offsets[num_subrs] - offsets[0];


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to