diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2002-08-01 12:23:04 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2002-08-01 12:23:04 +0000 |
commit | 8f3e3652e43d8747c0ccfe70d9cae96b444c1490 (patch) | |
tree | 62424ea390545f71f1df6b149b0d772a3914dab1 | |
parent | c13373b7d727a32eac1b48f6e730425fa96cf5cf (diff) |
Notes
-rw-r--r-- | lib/libc/xdr/xdr_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |