Permalink
Browse files

Merge pull request #326 from christinaa/master

Fixed a buffer overflow.
  • Loading branch information...
dfighter1985 committed Dec 20, 2012
2 parents 40e202f + 130cdfa commit 1298bad39ce0f91fe14ce8d0be44f3888508ecab
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/arcemu-logonserver/AuthSocket.cpp
@@ -602,6 +602,13 @@ void AuthSocket::HandleReconnectChallenge()
break;
}
/* buffer overflow thing */
if(m_challenge.I_len >= 50)
{
Disconnect();
return;
}
// Null-terminate the account string
m_challenge.I[m_challenge.I_len] = 0;

0 comments on commit 1298bad

Please sign in to comment.