diff options
author | no author <devnull@mit.edu> | 2003-04-09 00:10:14 +0000 |
---|---|---|
committer | no author <devnull@mit.edu> | 2003-04-09 00:10:14 +0000 |
commit | 9dc0f646d42648fbbde44799c00b25d97d9cbc98 (patch) | |
tree | d7e1bad8215f92673f94df55881b676002da7e8b /src/lib/krb4/cr_ciph.c | |
parent | 38037332d7af42124646c268874e0833bd8ec30e (diff) | |
download | krb5-krb5-1.2.8-final.zip krb5-krb5-1.2.8-final.tar.gz krb5-krb5-1.2.8-final.tar.bz2 |
This commit was manufactured by cvs2svn to create tagkrb5-1.2.8-final
'krb5-1-2-8-final'.
git-svn-id: svn://anonsvn.mit.edu/krb5/tags/krb5-1-2-8-final@15331 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb4/cr_ciph.c')
-rw-r--r-- | src/lib/krb4/cr_ciph.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/krb4/cr_ciph.c b/src/lib/krb4/cr_ciph.c index d15a4e0..d9c7512 100644 --- a/src/lib/krb4/cr_ciph.c +++ b/src/lib/krb4/cr_ciph.c @@ -71,6 +71,17 @@ create_ciph(c, session, service, instance, realm, life, kvno, tkt, ptr = (char *) c->dat; + if(sizeof(c->dat) / 8 < (8 + + strlen(service) + 1 + + strlen(instance) + 1 + + strlen(realm) + 1 + + 1 + 1 + 1 + + tkt->length + 4 + + 7) / 8) { + c->length = 0; + return(KFAILURE); + } + memcpy(ptr, (char *) session, 8); ptr += 8; |