Fix some more unsafe substr() calls
All of these require at least a valid login to znc to cause a std::out_of_range exceptions, some might not even be exploitable! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2095 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1 parent
c91d032e6b
commit
d0e3572afe
4 files changed
+6
-14
No files matched your search
@@ -52,7 +52,7 @@ public:
|
||||
if (sLine.Equals("ERROR ", false, 6)) {
|
||||
//ERROR :Closing Link: nick[24.24.24.24] (Excess Flood)
|
||||
//ERROR :Closing Link: nick[24.24.24.24] Killer (Local kill by Killer (reason))
|
||||
CString sError(sLine.substr(7));
|
||||
CString sError(sLine.substr(6));
|
||||
if (sError.Left(1) == ":")
|
||||
sError.LeftChomp();
|
||||
Log("[" + m_pUser->GetUserName() + "] disconnected from IRC: " +
|
||||
|
||||
Reference in new issue
Block a user