summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlkundrak <lkundrak@pkgsrc.org>2007-07-04 15:19:51 +0000
committerlkundrak <lkundrak@pkgsrc.org>2007-07-04 15:19:51 +0000
commitcc8a3df87721ede7e9e4e313de5aa44261618a42 (patch)
tree6dbbe9a24e7d66de73bc279f7234e7dfe7f38ed5
parentfd2c258da97eb918f4bad9e344025185f0189c36 (diff)
downloadpkgsrc-cc8a3df87721ede7e9e4e313de5aa44261618a42.tar.gz
Fix for CVE-2007-2949 heap overflow. Bump PKGREVISION.
-rw-r--r--graphics/gimp24/Makefile3
-rw-r--r--graphics/gimp24/distinfo3
-rw-r--r--graphics/gimp24/patches/patch-af28
3 files changed, 32 insertions, 2 deletions
diff --git a/graphics/gimp24/Makefile b/graphics/gimp24/Makefile
index 216ce7b6b0a..852f9cecede 100644
--- a/graphics/gimp24/Makefile
+++ b/graphics/gimp24/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2007/06/14 08:56:11 adam Exp $
+# $NetBSD: Makefile,v 1.45 2007/07/04 15:19:51 lkundrak Exp $
DISTNAME= gimp-2.3.18
+PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.gimp.org/pub/gimp/v2.3/ \
ftp://ftp.cs.umn.edu/pub/gimp/v2.3/ \
diff --git a/graphics/gimp24/distinfo b/graphics/gimp24/distinfo
index 461b8473e3f..1a93245eae5 100644
--- a/graphics/gimp24/distinfo
+++ b/graphics/gimp24/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2007/06/14 08:56:11 adam Exp $
+$NetBSD: distinfo,v 1.18 2007/07/04 15:19:51 lkundrak Exp $
SHA1 (gimp-2.3.18.tar.bz2) = 1a34a9d3cbf5fb757fc1ab54b8ed5737f1abe3fc
RMD160 (gimp-2.3.18.tar.bz2) = 17a0c3ebb3736c5d1dd5c620e5a03bc73151b31b
@@ -6,3 +6,4 @@ Size (gimp-2.3.18.tar.bz2) = 16926421 bytes
SHA1 (patch-aa) = f405e6cde52e8e85a7be327a47ddbb0cabb15ca5
SHA1 (patch-ab) = 10e173a95b97666cfb7a4775228fe8722dc22714
SHA1 (patch-ae) = ccdb74067fd88f6b838b4deee69dad68663c8cc5
+SHA1 (patch-af) = 05f23376a19497710cab08ffcd4dd29d6c82d729
diff --git a/graphics/gimp24/patches/patch-af b/graphics/gimp24/patches/patch-af
new file mode 100644
index 00000000000..2663feef6ac
--- /dev/null
+++ b/graphics/gimp24/patches/patch-af
@@ -0,0 +1,28 @@
+$NetBSD: patch-af,v 1.1 2007/07/04 15:19:51 lkundrak Exp $
+
+Fix for CVE-2007-2949 heap overflow from upstream.
+
+--- plug-ins/common/psd-load.c.orig 2007-07-04 17:08:32.000000000 +0200
++++ plug-ins/common/psd-load.c
+@@ -1291,7 +1291,7 @@ seek_to_and_unpack_pixeldata (FILE *fd,
+ gint layeri,
+ gint channeli)
+ {
+- int width, height;
++ gint width, height;
+ guchar *tmpline;
+ gint compression;
+ guint32 offset = 0;
+@@ -1305,6 +1305,12 @@ seek_to_and_unpack_pixeldata (FILE *fd,
+ width = channel->width;
+ height = channel->height;
+
++ if (width > G_MAXINT16 || height > G_MAXINT16)
++ {
++ g_message ("Error: Invalid channel dimensions");
++ gimp_quit ();
++ }
++
+ IFDBG
+ {
+ printf ("\t\t\tLayer (%d) Channel (%d:%d) Compression: %d (%s)\n",