From: Todd C. Miller Date: Fri, 15 Dec 1995 22:45:45 +0000 (+0000) Subject: tkfile was too short and overflowed the kerberos realm X-Git-Tag: SUDO_1_4_0~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8b95038f5bcc4f4fe30c69b85ad04fd4fad18ee;p=sudo tkfile was too short and overflowed the kerberos realm --- diff --git a/check.c b/check.c index 1cfacebcc..d7c6df15b 100644 --- a/check.c +++ b/check.c @@ -598,7 +598,7 @@ static int sudo_krb_validate_user(pw_ent, pass) char *pass; { char realm[REALM_SZ]; - char tkfile[MAX_UID_T_LEN + sizeof(_PATH_SUDO_TIMEDIR)]; + char tkfile[sizeof(_PATH_SUDO_TIMEDIR) + 4 + MAX_UID_T_LEN]; int k_errno; /* Get the local realm */