aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2003-07-06 10:29:12 +0000
committerStefan Eßer <se@FreeBSD.org>2003-07-06 10:29:12 +0000
commitd9cc06b566fea20dcad4eb6f0fb421a0c7f44748 (patch)
tree5cf2a31b48ab2cb820d988e46524ff1fac38e32d /games
parentd33a7a38e3440446ae530d29b2472d96ba7e50e3 (diff)
downloadports-d9cc06b566fea20dcad4eb6f0fb421a0c7f44748.tar.gz
ports-d9cc06b566fea20dcad4eb6f0fb421a0c7f44748.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/acm/files/patch-0924
1 files changed, 24 insertions, 0 deletions
diff --git a/games/acm/files/patch-09 b/games/acm/files/patch-09
new file mode 100644
index 000000000000..d0ce1c2950b1
--- /dev/null
+++ b/games/acm/files/patch-09
@@ -0,0 +1,24 @@
+--- dis/lib/xdr_var_array.c~ Mon May 11 20:58:55 1998
++++ dis/lib/xdr_var_array.c Sun Jul 6 03:21:47 2003
+@@ -75,6 +75,12 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/param.h>
++#if __FreeBSD_Version__ >= 500113
++# include <sys/limits.h>
++#else
++# include <machine/limits.h>
++#endif
+ #include <rpc/types.h>
+ #include <rpc/xdr.h>
+
+@@ -104,7 +110,7 @@
+ register u_int nodesize;
+
+ c = size;
+- if ((c > maxsize) && (xdrs->x_op != XDR_FREE)) {
++ if ((c > maxsize || c > UINT_MAX/elsize) && (xdrs->x_op != XDR_FREE)) {
+ return (FALSE);
+ }
+ nodesize = c * elsize;