diff options
author | lkundrak <lkundrak@pkgsrc.org> | 2007-07-04 13:44:10 +0000 |
---|---|---|
committer | lkundrak <lkundrak@pkgsrc.org> | 2007-07-04 13:44:10 +0000 |
commit | f4491820b207a0929ad3e3a7647fa50ca2ebdf20 (patch) | |
tree | f420c9f2dcc1cd6a85650c40a4fd8a95876eb1f0 | |
parent | 5c76abf752266e6ba1d0237e59f26694f210803e (diff) | |
download | pkgsrc-f4491820b207a0929ad3e3a7647fa50ca2ebdf20.tar.gz |
Security for CVE-2007-2949 heap overflow. Bump PKGREVISION.
-rw-r--r-- | graphics/gimp1-base/Makefile | 4 | ||||
-rw-r--r-- | graphics/gimp1-base/distinfo | 3 | ||||
-rw-r--r-- | graphics/gimp1-base/patches/patch-ae | 19 |
3 files changed, 23 insertions, 3 deletions
diff --git a/graphics/gimp1-base/Makefile b/graphics/gimp1-base/Makefile index eb5cf572960..4babcefc3a1 100644 --- a/graphics/gimp1-base/Makefile +++ b/graphics/gimp1-base/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.21 2007/06/12 17:27:25 wiz Exp $ +# $NetBSD: Makefile,v 1.22 2007/07/04 13:44:10 lkundrak Exp $ # DISTNAME= gimp-1.2.5 PKGNAME= gimp-base-1.2.5 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= graphics MASTER_SITES= ftp://ftp.gimp.org/pub/gimp/v1.2/v1.2.5/ \ ftp://ftp.fu-berlin.de/unix/X11/graphics/gimp/v1.2/v1.2.5/ \ diff --git a/graphics/gimp1-base/distinfo b/graphics/gimp1-base/distinfo index dfdabc5984a..e849d3041c1 100644 --- a/graphics/gimp1-base/distinfo +++ b/graphics/gimp1-base/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2005/02/24 08:45:06 agc Exp $ +$NetBSD: distinfo,v 1.3 2007/07/04 13:44:11 lkundrak Exp $ SHA1 (gimp-1.2.5.tar.bz2) = 1cb7fdbd4e6b191a62011c906e1b0aaef6e623ef RMD160 (gimp-1.2.5.tar.bz2) = d1be734271b763a22c0e8f5981c5c330a7744d31 @@ -6,3 +6,4 @@ Size (gimp-1.2.5.tar.bz2) = 10885324 bytes SHA1 (patch-aa) = 2d2f7ce110822522314aebfd86c06ebcbdbabb9d SHA1 (patch-ac) = 9949ba730b031132a183cabf69025e36500c70f0 SHA1 (patch-ad) = 29c68f53be2d527661dcbaa38b2bf92626cb139c +SHA1 (patch-ae) = e1b22a857da4a86afcc8d3144379df114a3cf64b diff --git a/graphics/gimp1-base/patches/patch-ae b/graphics/gimp1-base/patches/patch-ae new file mode 100644 index 00000000000..8309a4a879b --- /dev/null +++ b/graphics/gimp1-base/patches/patch-ae @@ -0,0 +1,19 @@ +$NetBSD: patch-ae,v 1.1 2007/07/04 13:44:11 lkundrak Exp $ + +Fix for CVE-2007-2949 heap overflow from upstream. + +--- plug-ins/common/psd.c.orig 2007-07-04 15:41:06.000000000 +0200 ++++ plug-ins/common/psd.c +@@ -1200,6 +1200,12 @@ seek_to_and_unpack_pixeldata(FILE* fd, g + width = psd_image.layer[layeri].channel[channeli].width; + height = psd_image.layer[layeri].channel[channeli].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", |