summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorassar <assar@FreeBSD.org>2002-10-22 02:13:32 +0000
committerassar <assar@FreeBSD.org>2002-10-22 02:13:32 +0000
commit4e7f1e8a5dbdbcb81e5dc2ea3025db9fdcc771e2 (patch)
tree8633ce0c90b59cbaaee492446f4c1b705f84c68f /crypto
parentf34f8701fa9b76ec6adeed1c1bde33f411156781 (diff)
parent3d945415d6fa7a88b4754fd38a897dafd21685f7 (diff)
downloadFreeBSD-src-4e7f1e8a5dbdbcb81e5dc2ea3025db9fdcc771e2.zip
FreeBSD-src-4e7f1e8a5dbdbcb81e5dc2ea3025db9fdcc771e2.tar.gz
This commit was generated by cvs2svn to compensate for changes in r105672,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/heimdal/kadmin/version4.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/heimdal/kadmin/version4.c b/crypto/heimdal/kadmin/version4.c
index 9dec87c..f4c6b08 100644
--- a/crypto/heimdal/kadmin/version4.c
+++ b/crypto/heimdal/kadmin/version4.c
@@ -41,7 +41,7 @@
#include <krb_err.h>
#include <kadm_err.h>
-RCSID("$Id: version4.c,v 1.26 2002/09/10 15:20:46 joda Exp $");
+RCSID("$Id: version4.c,v 1.27 2002/10/21 12:35:07 joda Exp $");
#define KADM_NO_OPCODE -1
#define KADM_NO_ENCRYPT -2
@@ -822,6 +822,13 @@ decode_packet(krb5_context context,
off += _krb5_get_int(msg + off, &rlen, 4);
memset(&authent, 0, sizeof(authent));
authent.length = message.length - rlen - KADM_VERSIZE - 4;
+
+ if(authent.length >= MAX_KTXT_LEN) {
+ krb5_warnx(context, "received bad rlen (%lu)", (unsigned long)rlen);
+ make_you_loose_packet (KADM_LENGTH_ERROR, reply);
+ return;
+ }
+
memcpy(authent.dat, (char*)msg + off, authent.length);
off += authent.length;
OpenPOWER on IntegriCloud