From 292ee3bd86be278e35b95da5aa6bcb21fe4720f4 Mon Sep 17 00:00:00 2001 From: nectar Date: Thu, 1 Aug 2002 12:23:04 +0000 Subject: [PATCH] The fix applied to the XDR decoder in revision 1.11 was incorrect. --- lib/libc/xdr/xdr_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/xdr/xdr_array.c b/lib/libc/xdr/xdr_array.c index 18f3f5312dcd..72005e42b4c6 100644 --- a/lib/libc/xdr/xdr_array.c +++ b/lib/libc/xdr/xdr_array.c @@ -83,7 +83,7 @@ xdr_array(xdrs, addrp, sizep, maxsize, elsize, elproc) return (FALSE); } c = *sizep; - if ((c > maxsize && UINT_MAX/elsize < c) && + if ((c > maxsize || UINT_MAX/elsize < c) && (xdrs->x_op != XDR_FREE)) { return (FALSE); }