From: Russ Allbery Date: Tue, 20 Jun 2006 21:45:16 +0000 (+0000) Subject: In verify_krb_v4_tgt, use an unsigned KRB4_32 to store an address rather X-Git-Tag: krb5-1.6-alpha1~289 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e93538b4cd620efd44729ffd4ca51d38cea3b010;p=krb5.git In verify_krb_v4_tgt, use an unsigned KRB4_32 to store an address rather than an unsigned long to avoid memcpying past the end of a structure on 64-bit platforms. Ticket: 581 Version_Reported: 1.0.5 Target_Version: 1.5 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18175 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index b49bababb..a3cdef797 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -786,7 +786,7 @@ static int verify_krb_v4_tgt (realm) struct hostent *hp; KTEXT_ST ticket; AUTH_DAT authdata; - unsigned long addr; + unsigned KRB4_32 addr; static /*const*/ char rcmd_str[] = "rcmd"; #if 0 char key[8];