Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=7f52d0eccc03fc802e77f1baf78f48e4c7592bda

commit 7f52d0eccc03fc802e77f1baf78f48e4c7592bda
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Wed Jun 11 16:49:21 2008 +0200

imlib2-1.4.1-1-i686
- version bump

diff --git a/source/xlib/imlib2/CVE-2008-2426.patch 
b/source/xlib/imlib2/CVE-2008-2426.patch
deleted file mode 100644
index 87269fd..0000000
--- a/source/xlib/imlib2/CVE-2008-2426.patch
+++ /dev/null
@@ -1,98 +0,0 @@
-diff -Nur imlib2-1.2.1/src/modules/loaders/loader_argb.c 
imlib2-1.2.1.new/src/modules/loaders/loader_argb.c
---- imlib2-1.2.1/src/modules/loaders/loader_argb.c     2006-11-06 
01:27:59.000000000 -0800
-+++ imlib2-1.2.1.new/src/modules/loaders/loader_argb.c 2006-11-06 
01:30:41.000000000 -0800
-@@ -23,7 +23,7 @@
- load(ImlibImage * im, ImlibProgressFunction progress,
-      char progress_granularity, char immediate_load)
- {
--   int                 w, h, alpha;
-+   int                 w=0, h=0, alpha=0;
-    FILE               *f;
-
-    if (im->data)
-@@ -36,6 +36,8 @@
-    {
-       char                buf[256], buf2[256];
-
-+      memset(buf, 0, sizeof(buf));
-+      memset(buf2, 0, sizeof(buf));
-       if (!fgets(buf, 255, f))
-         {
-            fclose(f);
-diff -Nur imlib2-1.2.1/src/modules/loaders/loader_jpeg.c 
imlib2-1.2.1.new/src/modules/loaders/loader_jpeg.c
---- imlib2-1.2.1/src/modules/loaders/loader_jpeg.c     2006-11-06 
01:27:59.000000000 -0800
-+++ imlib2-1.2.1.new/src/modules/loaders/loader_jpeg.c 2006-11-06 
01:33:01.000000000 -0800
-@@ -104,8 +104,9 @@
-         im->w = w = cinfo.output_width;
-         im->h = h = cinfo.output_height;
-
--        if (cinfo.rec_outbuf_height > 16)
-+        if (cinfo.rec_outbuf_height > 16 || w < 1 || h < 1 || w > 16383 || h 
> 16383)
-           {
-+           im->w = im->h = 0;
-              jpeg_destroy_decompress(&cinfo);
-              fclose(f);
-              return 0;
-diff -Nur imlib2-1.2.1/src/modules/loaders/loader_lbm.c 
imlib2-1.2.1.new/src/modules/loaders/loader_lbm.c
---- imlib2-1.2.1/src/modules/loaders/loader_lbm.c      2006-11-06 
01:27:59.000000000 -0800
-+++ imlib2-1.2.1.new/src/modules/loaders/loader_lbm.c  2006-11-06 
01:30:41.000000000 -0800
-@@ -453,6 +453,7 @@
-         }
-     }
-     if (!full || !ok) {
-+        im->w = im->h = 0;
-         freeilbm(&ilbm);
-         return ok;
-     }
-@@ -467,12 +468,13 @@
-     cancel = 0;
-     plane[0] = NULL;
-
-+    n = ilbm.depth;
-+    if (ilbm.mask == 1) n++;
-+
-     im->data = malloc(im->w * im->h * sizeof(DATA32));
--    if (im->data) {
--        n = ilbm.depth;
--        if (ilbm.mask == 1) n++;
-+    plane[0] = malloc(((im->w + 15) / 16) * 2 * n);
-+    if (im->data && plane[0]) {
-
--        plane[0] = malloc(((im->w + 15) / 16) * 2 * n);
-         for (i = 1; i < n; i++) plane[i] = plane[i - 1] + ((im->w + 15) / 16) 
* 2;
-
-         z = ((im->w + 15) / 16) * 2 * n;
-@@ -511,6 +513,7 @@
-    * the memory for im->data.
-    *----------*/
-     if (!ok) {
-+        im->w = im->h = 0;
-         if (im->data) free(im->data);
-         im->data = NULL;
-     }
-diff -Nur imlib2-1.2.1/src/modules/loaders/loader_pnm.c 
imlib2-1.2.1.new/src/modules/loaders/loader_pnm.c
---- imlib2-1.2.1/src/modules/loaders/loader_pnm.c      2006-11-06 
01:27:59.000000000 -0800
-+++ imlib2-1.2.1.new/src/modules/loaders/loader_pnm.c  2006-11-06 
01:30:41.000000000 -0800
-@@ -80,7 +80,7 @@
-              int                 i = 0;
-
-              /* read numbers */
--             while (c != EOF && !isspace(c))
-+             while (c != EOF && i+1 < sizeof(buf) && !isspace(c))
-                {
-                   buf[i++] = c;
-                   c = fgetc(f);
-diff -Nur imlib2-1.2.1/src/modules/loaders/loader_tga.c 
imlib2-1.2.1.new/src/modules/loaders/loader_tga.c
---- imlib2-1.2.1/src/modules/loaders/loader_tga.c      2006-11-06 
01:27:59.000000000 -0800
-+++ imlib2-1.2.1.new/src/modules/loaders/loader_tga.c  2006-11-06 
01:30:41.000000000 -0800
-@@ -365,7 +369,9 @@
-                   else
-                      dataptr = im->data + (y * im->w);
-
--                  for (x = 0; x < im->w; x++)   /* for each pixel in the row 
*/
-+                  for (x = 0;
-+                       x < im->w && bufptr+bpp/8 < bufend;
-+                       x++)   /* for each pixel in the row */
-                     {
-                        switch (bpp)
-                          {
diff --git a/source/xlib/imlib2/FrugalBuild b/source/xlib/imlib2/FrugalBuild
index b1ecb0d..a9bb854 100644
--- a/source/xlib/imlib2/FrugalBuild
+++ b/source/xlib/imlib2/FrugalBuild
@@ -2,8 +2,8 @@
# Maintainer: VMiklos <[EMAIL PROTECTED]>

pkgname=imlib2
-pkgver=1.4.0
-pkgrel=2
+pkgver=1.4.1
+pkgrel=1
pkgdesc="Imlib 2 is the successor to Imlib, it is NOT a newer version"
_F_sourceforge_dirname="enlightenment"
Finclude sourceforge
@@ -13,9 +13,7 @@ depends=('libtiff' 'freetype2' 'libxext' 'libjpeg' \
groups=('xlib')
archs=('i686' 'x86_64')
up2date="lynx -dump http://sourceforge.net/project/showfiles.php?group_id=2 
|grep imlib2-src |sed 's/.*]\([0-9\.]*\) [A-Z].*/\1/;q'"
-source=($source CVE-2008-2426.patch)
-sha1sums=('2bbd65b82a690d21dab2bfeb33cc370f6bb49393' \
-          'ce2a8c515e9f16bffcb996a6e9171e3832a94323')
+sha1sums=('d1894311e9e84015a0a9451748f6f37387fe693d')

if [ "$CARCH" != "x86_64" ]; then
Fconfopts="$Fconfopts --enable-mmx"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to