From: Tom Yu Date: Mon, 12 Aug 2002 22:41:14 +0000 (+0000) Subject: * xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable, X-Git-Tag: krb5-1.3-alpha1~520 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=195a4ee5ec6d110f1660bf2471061b4b53445246;p=krb5.git * xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable, since we don't call it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14701 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog index 0998bed13..cbe3955c4 100644 --- a/src/lib/rpc/ChangeLog +++ b/src/lib/rpc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-12 Tom Yu + + * xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable, + since we don't call it. + 2002-08-02 Tom Yu * xdr_array.c (xdr_array): Account for elsize when checking diff --git a/src/lib/rpc/xdr.c b/src/lib/rpc/xdr.c index fd924c913..07c7f67f8 100644 --- a/src/lib/rpc/xdr.c +++ b/src/lib/rpc/xdr.c @@ -632,7 +632,7 @@ xdr_string(xdrs, cpp, maxsize) if (! xdr_u_int(xdrs, &size)) { return (FALSE); } - if (size > maxsize) { + if (size >= maxsize) { return (FALSE); } nodesize = size + 1;