diff options
author | wiz <wiz@pkgsrc.org> | 2005-03-10 15:23:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-03-10 15:23:10 +0000 |
commit | dfb826be8578bd2a55c8051e58a2b959328272d4 (patch) | |
tree | 18cf90f2204a8917b667b0ab5ded3db5fa304a8d /graphics/xpm | |
parent | 01f69d2a2e8e462d48922deac4dd03f3fa3742df (diff) | |
download | pkgsrc-dfb826be8578bd2a55c8051e58a2b959328272d4.tar.gz |
Add patch to fix CAN-2005-0605. Bump PKGREVISION.
Diffstat (limited to 'graphics/xpm')
-rw-r--r-- | graphics/xpm/Makefile | 4 | ||||
-rw-r--r-- | graphics/xpm/distinfo | 4 | ||||
-rw-r--r-- | graphics/xpm/patches/patch-ak | 14 |
3 files changed, 16 insertions, 6 deletions
diff --git a/graphics/xpm/Makefile b/graphics/xpm/Makefile index 54476accab7..78e34929abf 100644 --- a/graphics/xpm/Makefile +++ b/graphics/xpm/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.38 2004/09/16 15:09:01 minskim Exp $ +# $NetBSD: Makefile,v 1.39 2005/03/10 15:23:10 wiz Exp $ DISTNAME= xpm-3.4k -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= graphics x11 MASTER_SITES= http://koala.ilog.fr/ftp/pub/xpm/ \ ${MASTER_SITE_XCONTRIB:=libraries/} diff --git a/graphics/xpm/distinfo b/graphics/xpm/distinfo index b163c04fa2b..f163c270d0e 100644 --- a/graphics/xpm/distinfo +++ b/graphics/xpm/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2005/02/24 08:45:15 agc Exp $ +$NetBSD: distinfo,v 1.12 2005/03/10 15:23:10 wiz Exp $ SHA1 (xpm-3.4k.tar.gz) = a8eac19e5772bf7b3b177353686c1401fbf334bd RMD160 (xpm-3.4k.tar.gz) = 65a2e58f97724a48a6834aab991341771c5a1faf @@ -13,4 +13,4 @@ SHA1 (patch-ag) = 68435561f8fe7753c4bb8ce71ee6e53faf1e83d6 SHA1 (patch-ah) = 075229583814bbdd0a3d7ac8dcb6ad0507d182ff SHA1 (patch-ai) = 79472013037a1866739b96e97d740378086cc46f SHA1 (patch-aj) = 98048e40c338f69915e233aa11df0f95deff75a4 -SHA1 (patch-ak) = b84999d5e981bbe6edd6fc76310681c16263e8b5 +SHA1 (patch-ak) = a949e05f82d5ed9ce48348bcedf4811cff119a03 diff --git a/graphics/xpm/patches/patch-ak b/graphics/xpm/patches/patch-ak index 3b7624a8839..2485265546a 100644 --- a/graphics/xpm/patches/patch-ak +++ b/graphics/xpm/patches/patch-ak @@ -1,6 +1,6 @@ -$NetBSD: patch-ak,v 1.1 2004/09/16 15:09:01 minskim Exp $ +$NetBSD: patch-ak,v 1.2 2005/03/10 15:23:10 wiz Exp $ ---- lib/scan.c.orig Thu Mar 19 13:51:00 1998 +--- lib/scan.c.orig 1998-03-19 20:51:00.000000000 +0100 +++ lib/scan.c @@ -103,7 +103,8 @@ LFUNC(MSWGetImagePixels, int, (Display * LFUNC(ScanTransparentColor, int, (XpmColor *color, unsigned int cpp, @@ -66,3 +66,13 @@ $NetBSD: patch-ak,v 1.1 2004/09/16 15:09:01 minskim Exp $ xcolors = (XColor *) XpmMalloc(sizeof(XColor) * ncolors); if (!xcolors) return (XpmNoMemory); +@@ -615,6 +628,9 @@ GetImagePixels(image, width, height, pma + ibpp = image->bits_per_pixel; + offset = image->xoffset; + ++ if (image->bitmap_unit < 0) ++ return (XpmNoMemory); ++ + if ((image->bits_per_pixel | image->depth) == 1) { + ibu = image->bitmap_unit; + for (y = 0; y < height; y++) |