diff options
Diffstat (limited to 'x11/openmotif/patches/patch-bd')
-rw-r--r-- | x11/openmotif/patches/patch-bd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/openmotif/patches/patch-bd b/x11/openmotif/patches/patch-bd new file mode 100644 index 00000000000..fb26e70bc6a --- /dev/null +++ b/x11/openmotif/patches/patch-bd @@ -0,0 +1,13 @@ +$NetBSD: patch-bd,v 1.1 2004/12/18 00:39:31 tron Exp $ + +--- lib/Xm/XpmWrFFrI.c.orig 2000-04-28 16:05:22.000000000 +0100 ++++ lib/Xm/XpmWrFFrI.c 2004-12-17 23:20:38.000000000 +0000 +@@ -239,6 +239,8 @@ + unsigned int x, y, h; + + h = height - 1; ++ if (cpp != 0 && width >= (SIZE_MAX - 3)/cpp) ++ return XpmNoMemory; + p = buf = (char *) XpmMalloc(width * cpp + 3); + if (!buf) + return (XpmNoMemory); |