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

commit d50911caff389932df254924353b1dcdb632678d
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Mon May 19 17:45:08 2008 +0200

sdlimage-1.2.6-2-i686
- moved to extra

diff --git a/source/xlib-extra/sdlimage/CVE-2007-6697+CVE-2008-0544.patch 
b/source/xlib-extra/sdlimage/CVE-2007-6697+CVE-2008-0544.patch
new file mode 100644
index 0000000..7c17a83
--- /dev/null
+++ b/source/xlib-extra/sdlimage/CVE-2007-6697+CVE-2008-0544.patch
@@ -0,0 +1,43 @@
+diff -Naur SDL_image-1.2.6/IMG_gif.c SDL_image-1.2.6-CVE/IMG_gif.c
+--- SDL_image-1.2.6/IMG_gif.c  2007-07-02 04:03:48.000000000 +0200
++++ SDL_image-1.2.6-CVE/IMG_gif.c      2008-03-29 14:03:20.000000000 +0100
+@@ -418,6 +418,10 @@
+     static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp;
+     register int i;
+
++    /* Fixed buffer overflow found by Michael Skladnikiewicz */
++    if (input_code_size > MAX_LWZ_BITS)
++        return -1;
++
+     if (flag) {
+       set_code_size = input_code_size;
+       code_size = set_code_size + 1;
+diff -Naur SDL_image-1.2.6/IMG_lbm.c SDL_image-1.2.6-CVE/IMG_lbm.c
+--- SDL_image-1.2.6/IMG_lbm.c  2007-07-20 06:36:32.000000000 +0200
++++ SDL_image-1.2.6-CVE/IMG_lbm.c      2008-03-29 14:03:29.000000000 +0100
+@@ -28,6 +28,7 @@
+    EHB and HAM (specific Amiga graphic chip modes) support added by Marc Le 
Douarain
+    (http://www.multimania.com/mavati) in December 2003.
+    Stencil and colorkey fixes by David Raulo (david.raulo AT free DOT fr) in 
February 2004.
++   Buffer overflow fix in RLE decompression by David Raulo in January 2008.
+ */
+
+ #include <stdio.h>
+@@ -328,7 +329,7 @@
+                                               count ^= 0xFF;
+                                               count += 2; /* now it */
+
+-                                              if ( !SDL_RWread( src, &color, 
1, 1 ) )
++                                              if ( ( count > remainingbytes ) 
|| !SDL_RWread( src, &color, 1, 1 ) )
+                                               {
+                                                  error="error reading BODY 
chunk";
+                                                       goto done;
+@@ -339,7 +340,7 @@
+                                       {
+                                               ++count;
+
+-                                              if ( !SDL_RWread( src, ptr, 
count, 1 ) )
++                                              if ( ( count > remainingbytes ) 
|| !SDL_RWread( src, ptr, count, 1 ) )
+                                               {
+                                                  error="error reading BODY 
chunk";
+                                                       goto done;
diff --git a/source/xlib-extra/sdlimage/FrugalBuild 
b/source/xlib-extra/sdlimage/FrugalBuild
new file mode 100644
index 0000000..ef42608
--- /dev/null
+++ b/source/xlib-extra/sdlimage/FrugalBuild
@@ -0,0 +1,18 @@
+# Compiling Time: 0.05 SBU
+# Maintainer: Priyank Gosalia <[EMAIL PROTECTED]>
+
+pkgname=sdlimage
+pkgver=1.2.6
+pkgrel=2
+pkgdesc="Image loading library for Simple DirectMedia Layer 1.2"
+url="http://www.libsdl.org/";
+depends=('sdl' 'libjpeg' 'libpng' 'libtiff')
+groups=('xlib-extra')
+archs=('i686' 'x86_64')
+up2date="lynx -dump http://www.libsdl.org/projects/SDL_image/ | grep -m1 
tar.gz | sed 's/.*e-\(.*\).t.*/\1/'"
+source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$pkgver.tar.gz
 CVE-2007-6697+CVE-2008-0544.patch)
+sha1sums=('5045df31e4db29d8890110fd18024c9d08efca30' \
+          '5e3a363c78f20692045b15782160ebf50cc8fca3')
+_F_cd_path="SDL_image-$pkgver"
+Fconfopts="$Fconfopts --enable-jpeg"
+# optimization OK
diff --git a/source/xlib/sdlimage/CVE-2007-6697+CVE-2008-0544.patch 
b/source/xlib/sdlimage/CVE-2007-6697+CVE-2008-0544.patch
deleted file mode 100644
index 7c17a83..0000000
--- a/source/xlib/sdlimage/CVE-2007-6697+CVE-2008-0544.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-diff -Naur SDL_image-1.2.6/IMG_gif.c SDL_image-1.2.6-CVE/IMG_gif.c
---- SDL_image-1.2.6/IMG_gif.c  2007-07-02 04:03:48.000000000 +0200
-+++ SDL_image-1.2.6-CVE/IMG_gif.c      2008-03-29 14:03:20.000000000 +0100
-@@ -418,6 +418,10 @@
-     static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp;
-     register int i;
-
-+    /* Fixed buffer overflow found by Michael Skladnikiewicz */
-+    if (input_code_size > MAX_LWZ_BITS)
-+        return -1;
-+
-     if (flag) {
-       set_code_size = input_code_size;
-       code_size = set_code_size + 1;
-diff -Naur SDL_image-1.2.6/IMG_lbm.c SDL_image-1.2.6-CVE/IMG_lbm.c
---- SDL_image-1.2.6/IMG_lbm.c  2007-07-20 06:36:32.000000000 +0200
-+++ SDL_image-1.2.6-CVE/IMG_lbm.c      2008-03-29 14:03:29.000000000 +0100
-@@ -28,6 +28,7 @@
-    EHB and HAM (specific Amiga graphic chip modes) support added by Marc Le 
Douarain
-    (http://www.multimania.com/mavati) in December 2003.
-    Stencil and colorkey fixes by David Raulo (david.raulo AT free DOT fr) in 
February 2004.
-+   Buffer overflow fix in RLE decompression by David Raulo in January 2008.
- */
-
- #include <stdio.h>
-@@ -328,7 +329,7 @@
-                                               count ^= 0xFF;
-                                               count += 2; /* now it */
-
--                                              if ( !SDL_RWread( src, &color, 
1, 1 ) )
-+                                              if ( ( count > remainingbytes ) 
|| !SDL_RWread( src, &color, 1, 1 ) )
-                                               {
-                                                  error="error reading BODY 
chunk";
-                                                       goto done;
-@@ -339,7 +340,7 @@
-                                       {
-                                               ++count;
-
--                                              if ( !SDL_RWread( src, ptr, 
count, 1 ) )
-+                                              if ( ( count > remainingbytes ) 
|| !SDL_RWread( src, ptr, count, 1 ) )
-                                               {
-                                                  error="error reading BODY 
chunk";
-                                                       goto done;
diff --git a/source/xlib/sdlimage/FrugalBuild b/source/xlib/sdlimage/FrugalBuild
deleted file mode 100644
index 9746f4a..0000000
--- a/source/xlib/sdlimage/FrugalBuild
+++ /dev/null
@@ -1,19 +0,0 @@
-# Compiling Time: 0.05 SBU
-# Maintainer: Priyank Gosalia <[EMAIL PROTECTED]>
-
-pkgname=sdlimage
-pkgver=1.2.6
-pkgrel=2
-pkgdesc="Image loading library for Simple DirectMedia Layer 1.2"
-url="http://www.libsdl.org/";
-depends=('sdl' 'libjpeg' 'libpng' 'libtiff')
-groups=('xlib')
-archs=('i686' 'x86_64')
-up2date="lynx -dump http://www.libsdl.org/projects/SDL_image/ | grep -m1 
tar.gz | sed 's/.*e-\(.*\).t.*/\1/'"
-source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$pkgver.tar.gz
 CVE-2007-6697+CVE-2008-0544.patch)
-sha1sums=('5045df31e4db29d8890110fd18024c9d08efca30' \
-          '5e3a363c78f20692045b15782160ebf50cc8fca3')
-_F_cd_path="SDL_image-$pkgver"
-Fconfopts="$Fconfopts --enable-jpeg"
-
-# optimization OK
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to