From 8f3e3652e43d8747c0ccfe70d9cae96b444c1490 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Thu, 1 Aug 2002 12:23:04 +0000 Subject: 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 18f3f5312dcd3..72005e42b4c6f 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); } -- cgit v1.2.3