summaryrefslogtreecommitdiff
path: root/x11/XFree86-libs/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'x11/XFree86-libs/patches/patch-al')
-rw-r--r--x11/XFree86-libs/patches/patch-al31
1 files changed, 0 insertions, 31 deletions
diff --git a/x11/XFree86-libs/patches/patch-al b/x11/XFree86-libs/patches/patch-al
deleted file mode 100644
index 6145f9d1238..00000000000
--- a/x11/XFree86-libs/patches/patch-al
+++ /dev/null
@@ -1,31 +0,0 @@
-$NetBSD: patch-al,v 1.3 2004/09/16 19:28:56 minskim Exp $
-
---- extras/Xpm/lib/hashtab.c.orig 1999-01-11 07:23:11.000000000 -0600
-+++ extras/Xpm/lib/hashtab.c
-@@ -135,7 +135,7 @@ HashTableGrows(table)
- xpmHashTable *table;
- {
- xpmHashAtom *atomTable = table->atomTable;
-- int size = table->size;
-+ unsigned int size = table->size;
- xpmHashAtom *t, *p;
- int i;
- int oldSize = size;
-@@ -144,6 +144,8 @@ HashTableGrows(table)
- HASH_TABLE_GROWS
- table->size = size;
- table->limit = size / 3;
-+ if (size >= SIZE_MAX / sizeof(*atomTable))
-+ return (XpmNoMemory);
- atomTable = (xpmHashAtom *) XpmMalloc(size * sizeof(*atomTable));
- if (!atomTable)
- return (XpmNoMemory);
-@@ -204,6 +206,8 @@ xpmHashTableInit(table)
- table->size = INITIAL_HASH_SIZE;
- table->limit = table->size / 3;
- table->used = 0;
-+ if (table->size >= SIZE_MAX / sizeof(*atomTable))
-+ return (XpmNoMemory);
- atomTable = (xpmHashAtom *) XpmMalloc(table->size * sizeof(*atomTable));
- if (!atomTable)
- return (XpmNoMemory);