pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/openmotif Add patch to fix CAN-2005-0605. Bump PKG...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0cba1ff45244
branches: trunk
changeset: 490442:0cba1ff45244
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Mar 10 16:00:31 2005 +0000
description:
Add patch to fix CAN-2005-0605. Bump PKGREVISION.
diffstat:
x11/openmotif/Makefile | 4 ++--
x11/openmotif/distinfo | 4 ++--
x11/openmotif/patches/patch-bi | 28 +++++++++++++++++++---------
3 files changed, 23 insertions(+), 13 deletions(-)
diffs (105 lines):
diff -r ae49afdf116b -r 0cba1ff45244 x11/openmotif/Makefile
--- a/x11/openmotif/Makefile Thu Mar 10 15:38:33 2005 +0000
+++ b/x11/openmotif/Makefile Thu Mar 10 16:00:31 2005 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.31 2004/12/25 22:22:00 minskim Exp $
+# $NetBSD: Makefile,v 1.32 2005/03/10 16:00:31 wiz Exp $
PKGVER= 2.1.30
DISTNAME= openmotif${PKGVER}
PKGNAME= openmotif-${PKGVER}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= x11
MOTIF_SITES= ftp://openmotif.opengroup.org/pub/openmotif/R${PKGVER}/ \
ftp://ftp.opengroup.org/pub/openmotif/R${PKGVER}/ \
diff -r ae49afdf116b -r 0cba1ff45244 x11/openmotif/distinfo
--- a/x11/openmotif/distinfo Thu Mar 10 15:38:33 2005 +0000
+++ b/x11/openmotif/distinfo Thu Mar 10 16:00:31 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2005/02/23 17:36:17 wiz Exp $
+$NetBSD: distinfo,v 1.16 2005/03/10 16:00:31 wiz Exp $
SHA1 (openmotif/openmotif2.1.30.tar.gz) = 34fc82fdf0e200525864665e179246ef64082dcc
RMD160 (openmotif/openmotif2.1.30.tar.gz) = b404b925dbb6fe4ff6c522edf3d0f511637fb872
@@ -52,4 +52,4 @@
SHA1 (patch-bf) = 211d84bccf91ed474634658a75af5d8977b052d4
SHA1 (patch-bg) = 582f455b066bd4f12160d719c885e9d8423632e5
SHA1 (patch-bh) = 4025190b6200398b54cfa075da8976e96bf7c3ee
-SHA1 (patch-bi) = b11a6493500c3d7dec379a2e73f42d7752f471ba
+SHA1 (patch-bi) = 4dced20ce293f8635f121f77e9112e93766b9723
diff -r ae49afdf116b -r 0cba1ff45244 x11/openmotif/patches/patch-bi
--- a/x11/openmotif/patches/patch-bi Thu Mar 10 15:38:33 2005 +0000
+++ b/x11/openmotif/patches/patch-bi Thu Mar 10 16:00:31 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-bi,v 1.1 2004/12/18 00:39:31 tron Exp $
+$NetBSD: patch-bi,v 1.2 2005/03/10 16:00:32 wiz Exp $
---- lib/Xm/Xpmscan.c.orig 2000-04-28 16:05:21.000000000 +0100
-+++ lib/Xm/Xpmscan.c 2004-12-17 23:42:33.000000000 +0000
-@@ -93,7 +93,8 @@
+--- lib/Xm/Xpmscan.c.orig 2000-04-28 17:05:21.000000000 +0200
++++ lib/Xm/Xpmscan.c
+@@ -93,7 +93,8 @@ LFUNC(MSWGetImagePixels, int, (Display *
LFUNC(ScanTransparentColor, int, (XpmColor *color, unsigned int cpp,
XpmAttributes *attributes));
@@ -12,7 +12,7 @@
Pixel *pixels, unsigned int mask,
unsigned int cpp, XpmAttributes *attributes));
-@@ -220,11 +221,17 @@
+@@ -220,11 +221,17 @@ XpmCreateXpmImageFromImage(display, imag
else
cpp = 0;
@@ -30,7 +30,7 @@
pmap.pixels = (Pixel *) XpmMalloc(sizeof(Pixel) * pmap.size);
if (!pmap.pixels)
RETURN(XpmNoMemory);
-@@ -279,7 +286,8 @@
+@@ -279,7 +286,8 @@ XpmCreateXpmImageFromImage(display, imag
* get rgb values and a string of char, and possibly a name for each
* color
*/
@@ -40,7 +40,7 @@
colorTable = (XpmColor *) XpmCalloc(pmap.ncolors, sizeof(XpmColor));
if (!colorTable)
RETURN(XpmNoMemory);
-@@ -327,6 +335,8 @@
+@@ -327,6 +335,8 @@ ScanTransparentColor(color, cpp, attribu
/* first get a character string */
a = 0;
@@ -49,7 +49,7 @@
if (!(s = color->string = (char *) XpmMalloc(cpp + 1)))
return (XpmNoMemory);
*s++ = printable[c = a % MAXPRINTABLE];
-@@ -374,7 +384,7 @@
+@@ -374,7 +384,7 @@ static int
ScanOtherColors(display, colors, ncolors, pixels, mask, cpp, attributes)
Display *display;
XpmColor *colors;
@@ -58,7 +58,7 @@
Pixel *pixels;
unsigned int mask;
unsigned int cpp;
-@@ -418,6 +428,8 @@
+@@ -418,6 +428,8 @@ ScanOtherColors(display, colors, ncolors
}
/* first get character strings and rgb values */
@@ -67,3 +67,13 @@
xcolors = (XColor *) XpmMalloc(sizeof(XColor) * ncolors);
if (!xcolors)
return (XpmNoMemory);
+@@ -585,6 +597,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++)
Home |
Main Index |
Thread Index |
Old Index