fd63287501
applying a patch based on ICS's patch for OpenMotif 2.2.3.
13 lines
417 B
Text
13 lines
417 B
Text
$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);
|