From 17122d55ad330e73f529704fbd37d70e9aed0ac2 Mon Sep 17 00:00:00 2001 From: Daniel Ahlberg Date: Fri, 2 Aug 2002 22:47:20 +0000 Subject: Security update. --- net-fs/openafs/files/digest-openafs-1.2.5-r1 | 1 + net-fs/openafs/files/digest-openafs-1.3.2-r1 | 1 + .../files/openafs-1.2.5-sunrpc-overflow.patch | 24 +++++++++ .../files/openafs-1.3.2-sunrpc-overflow.patch | 58 ++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 net-fs/openafs/files/digest-openafs-1.2.5-r1 create mode 100644 net-fs/openafs/files/digest-openafs-1.3.2-r1 create mode 100644 net-fs/openafs/files/openafs-1.2.5-sunrpc-overflow.patch create mode 100644 net-fs/openafs/files/openafs-1.3.2-sunrpc-overflow.patch (limited to 'net-fs/openafs/files') diff --git a/net-fs/openafs/files/digest-openafs-1.2.5-r1 b/net-fs/openafs/files/digest-openafs-1.2.5-r1 new file mode 100644 index 000000000000..36c605500ab8 --- /dev/null +++ b/net-fs/openafs/files/digest-openafs-1.2.5-r1 @@ -0,0 +1 @@ +MD5 2d3380bc226fdedb9a74804412743349 openafs-1.2.5-src.tar.bz2 10223247 diff --git a/net-fs/openafs/files/digest-openafs-1.3.2-r1 b/net-fs/openafs/files/digest-openafs-1.3.2-r1 new file mode 100644 index 000000000000..80848ade5cd3 --- /dev/null +++ b/net-fs/openafs/files/digest-openafs-1.3.2-r1 @@ -0,0 +1 @@ +MD5 5057634d9f6c44d5ca9a6dd9fdd84184 openafs-1.3.2-src.tar.gz 12578259 diff --git a/net-fs/openafs/files/openafs-1.2.5-sunrpc-overflow.patch b/net-fs/openafs/files/openafs-1.2.5-sunrpc-overflow.patch new file mode 100644 index 000000000000..e28f1006c0ff --- /dev/null +++ b/net-fs/openafs/files/openafs-1.2.5-sunrpc-overflow.patch @@ -0,0 +1,24 @@ +--- openafs/src/rx/xdr_array.c 2001/08/08 00:03:57 1.4 ++++ openafs/src/rx/xdr_array.c 2002/07/31 23:13:49 1.4.2.1 +@@ -29,7 +29,7 @@ + #include + #include + +-RCSID("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs/files/openafs-1.2.5-sunrpc-overflow.patch,v 1.1 2002/08/02 22:47:20 aliz Exp $"); ++RCSID("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs/files/openafs-1.2.5-sunrpc-overflow.patch,v 1.1 2002/08/02 22:47:20 aliz Exp $"); + + #ifndef NeXT + +@@ -84,7 +84,10 @@ + register caddr_t target = *addrp; + register u_int c; /* the actual element count */ + register bool_t stat = TRUE; +- register int nodesize; ++ register u_int nodesize; ++ ++ i = ((~0) >> 1) / elsize; ++ if (maxsize > i) maxsize = i; + + /* like strings, arrays are really counted arrays */ + if (! xdr_u_int(xdrs, sizep)) { + diff --git a/net-fs/openafs/files/openafs-1.3.2-sunrpc-overflow.patch b/net-fs/openafs/files/openafs-1.3.2-sunrpc-overflow.patch new file mode 100644 index 000000000000..0b93136ed616 --- /dev/null +++ b/net-fs/openafs/files/openafs-1.3.2-sunrpc-overflow.patch @@ -0,0 +1,58 @@ +--- openafs/src/rx/xdr_array.c 2001/08/08 00:03:57 1.4 ++++ openafs/src/rx/xdr_array.c 2002/07/31 23:13:28 1.4.6.3 +@@ -29,7 +29,7 @@ + #include + #include + +-RCSID("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs/files/openafs-1.3.2-sunrpc-overflow.patch,v 1.1 2002/08/02 22:47:20 aliz Exp $"); ++RCSID("$Header: /var/cvsroot/gentoo-x86/net-fs/openafs/files/openafs-1.3.2-sunrpc-overflow.patch,v 1.1 2002/08/02 22:47:20 aliz Exp $"); + + #ifndef NeXT + +@@ -57,10 +57,6 @@ + #endif + #include "xdr.h" + +-#ifndef osi_alloc +-char *osi_alloc(); +-#endif +- + #define LASTUNSIGNED ((u_int)0-1) + + +@@ -71,20 +67,25 @@ + * elsize is the size (in bytes) of each element, and elproc is the + * xdr procedure to call to handle each element of the array. + */ +-bool_t +-xdr_array(xdrs, addrp, sizep, maxsize, elsize, elproc) +- register XDR *xdrs; +- caddr_t *addrp; /* array pointer */ +- u_int *sizep; /* number of elements */ +- u_int maxsize; /* max numberof elements */ +- u_int elsize; /* size in bytes of each element */ +- xdrproc_t elproc; /* xdr routine to handle each element */ ++/* ++ caddr_t *addrp; * array pointer * ++ u_int *sizep; * number of elements * ++ u_int maxsize; * max numberof elements * ++ u_int elsize; * size in bytes of each element * ++ xdrproc_t elproc; * xdr routine to handle each element * ++*/ ++ ++bool_t xdr_array(register XDR *xdrs, caddr_t *addrp, u_int *sizep, ++ u_int maxsize, u_int elsize, xdrproc_t elproc) + { + register u_int i; + register caddr_t target = *addrp; + register u_int c; /* the actual element count */ + register bool_t stat = TRUE; +- register int nodesize; ++ register u_int nodesize; ++ ++ i = ((~0) >> 1) / elsize; ++ if (maxsize > i) maxsize = i; + + /* like strings, arrays are really counted arrays */ + if (! xdr_u_int(xdrs, sizep)) { + -- cgit v1.2.3-65-gdbad