From 195a4ee5ec6d110f1660bf2471061b4b53445246 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 12 Aug 2002 22:41:14 +0000 Subject: [PATCH] * 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 --- src/lib/rpc/ChangeLog | 5 +++++ src/lib/rpc/xdr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.26.2