pkgsrc/x11/openmotif/patches/patch-bc
tron fd63287501 Fix vulnerabilities reported in CAN-2004-0687 and CAN-2004-0688 by
applying a patch based on ICS's patch for OpenMotif 2.2.3.
2004-12-18 00:39:31 +00:00

36 lines
791 B
Text

$NetBSD: patch-bc,v 1.1 2004/12/18 00:39:31 tron Exp $
--- lib/Xm/XpmI.h.orig 2004-12-17 23:17:51.000000000 +0000
+++ lib/Xm/XpmI.h 2004-12-17 23:21:35.000000000 +0000
@@ -179,6 +179,18 @@
boundCheckingCalloc((long)(nelem),(long) (elsize))
#endif
+#if defined(SCO) || defined(__USLC__)
+#include <stdint.h> /* For SIZE_MAX */
+#endif
+#include <limits.h>
+#ifndef SIZE_MAX
+# ifdef ULONG_MAX
+# define SIZE_MAX ULONG_MAX
+# else
+# define SIZE_MAX UINT_MAX
+# endif
+#endif
+
#define XPMMAXCMTLEN BUFSIZ
typedef struct {
unsigned int type;
@@ -276,9 +288,9 @@
} *xpmHashAtom;
typedef struct {
- int size;
- int limit;
- int used;
+ unsigned int size;
+ unsigned int limit;
+ unsigned int used;
xpmHashAtom *atomTable;
} xpmHashTable;