(handle_v4): make sure length is longer then 2,
Pointed out by Evgeny Demidov <demidov@gleg.net> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13827 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -965,6 +965,8 @@ handle_v4(krb5_context context,
|
||||
if(term_flag)
|
||||
exit(0);
|
||||
if(first) {
|
||||
if (len < 2)
|
||||
krb5_errx(context, 1, "received too short len (%d < 2)", len);
|
||||
/* first time around, we have already read len, and two
|
||||
bytes of the version string */
|
||||
krb5_data_alloc(&message, len);
|
||||
|
Reference in New Issue
Block a user