rpms/imlib2/devel imlib2-1.4.0-CVE-2008-2426.patch, NONE, 1.1 imlib2.spec, 1.31, 1.32

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Fri May 30 10:10:19 UTC 2008


Author: tsmetana

Update of /cvs/pkgs/rpms/imlib2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2662

Modified Files:
	imlib2.spec 
Added Files:
	imlib2-1.4.0-CVE-2008-2426.patch 
Log Message:
* Fri May 30 2008 Tomas Smetana <tsmetana at redhat.com> 1.4.0-7
- patch for CVE-2008-2426; buffer overflow in xpm loader


imlib2-1.4.0-CVE-2008-2426.patch:

--- NEW FILE imlib2-1.4.0-CVE-2008-2426.patch ---
diff -up imlib2-1.4.0/src/modules/loaders/loader_xpm.c.CVE-2008-2426 imlib2-1.4.0/src/modules/loaders/loader_xpm.c
--- imlib2-1.4.0/src/modules/loaders/loader_xpm.c.CVE-2008-2426	2008-05-30 11:54:06.000000000 +0200
+++ imlib2-1.4.0/src/modules/loaders/loader_xpm.c	2008-05-30 11:54:40.000000000 +0200
@@ -284,7 +284,7 @@ load(ImlibImage * im, ImlibProgressFunct
                                  if (line[k] != ' ')
                                    {
                                       s[0] = 0;
-                                      sscanf(&line[k], "%65535s", s);
+                                      sscanf(&line[k], "%255s", s);
                                       slen = strlen(s);
                                       k += slen;
                                       if (!strcmp(s, "c"))


Index: imlib2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/imlib2/devel/imlib2.spec,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- imlib2.spec	11 Mar 2008 08:38:10 -0000	1.31
+++ imlib2.spec	30 May 2008 10:09:15 -0000	1.32
@@ -1,7 +1,7 @@
 Summary:        Image loading, saving, rendering, and manipulation library
 Name:           imlib2
 Version:        1.4.0
-Release:        6%{?dist}
+Release:        7%{?dist}
 License:        Imlib2
 Group:          System Environment/Libraries
 URL:            http://docs.enlightenment.org/api/imlib2/html/
@@ -9,6 +9,7 @@
 Patch0:         imlib2-1.2.1-X11-path.patch
 Patch1:         imlib2-1.3.0-multilib.patch
 Patch2:         imlib2-1.3.0-loader_overflows.patch
+Patch3:         imlib2-1.4.0-CVE-2008-2426.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  libjpeg-devel libpng-devel libtiff-devel
 BuildRequires:  giflib-devel freetype-devel >= 2.1.9-4 libtool bzip2-devel
@@ -60,6 +61,7 @@
 %patch0 -p1 -b .x11-path
 %patch1 -p1 -b .multilib
 %patch2 -p1 -b .overflow
+%patch3 -p1 -b .CVE-2008-2426
 # sigh stop autoxxx from rerunning because of our patches above.
 touch aclocal.m4
 touch configure
@@ -128,6 +130,9 @@
 %{_libdir}/imlib2/loaders/id3.*
 
 %changelog
+* Fri May 30 2008 Tomas Smetana <tsmetana at redhat.com> 1.4.0-7
+- patch for CVE-2008-2426
+
 * Tue Mar 11 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 1.4.0-6
 - Disable amd64 assembly optimization. (Kills idesk - #222998, #436924)
 




More information about the fedora-extras-commits mailing list