diff options
author | Alex Alexander <wired@gentoo.org> | 2012-01-08 18:20:08 +0000 |
---|---|---|
committer | Alex Alexander <wired@gentoo.org> | 2012-01-08 18:20:08 +0000 |
commit | 27bae23d4bcb778fc81c3d08ee61f35c6a994146 (patch) | |
tree | eac9cfdd0a1f3d16b1f99f1a5adb2c447faacb35 /net-irc/znc/files | |
parent | Version bump to next upstream production release. (diff) | |
download | historical-27bae23d4bcb778fc81c3d08ee61f35c6a994146.tar.gz historical-27bae23d4bcb778fc81c3d08ee61f35c6a994146.tar.bz2 historical-27bae23d4bcb778fc81c3d08ee61f35c6a994146.zip |
security: bouncedcc dos fix - bug #398159
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'net-irc/znc/files')
-rw-r--r-- | net-irc/znc/files/znc-0.202-bouncedcc-dos-fix.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-irc/znc/files/znc-0.202-bouncedcc-dos-fix.patch b/net-irc/znc/files/znc-0.202-bouncedcc-dos-fix.patch new file mode 100644 index 000000000000..090932e927a5 --- /dev/null +++ b/net-irc/znc/files/znc-0.202-bouncedcc-dos-fix.patch @@ -0,0 +1,27 @@ +# Fix crash in bouncedcc module. +# It happens when DCC RESUME is received. +# Affected ZNC versions: 0.200, 0.202. + +https://bugs.gentoo.org/show_bug.cgi?id=398159 + +diff -Naur znc-0.202.orig/modules/bouncedcc.cpp znc-0.202/modules/bouncedcc.cpp +--- znc-0.202.orig/modules/bouncedcc.cpp 2011-09-21 22:20:19.000000000 +0200 ++++ znc-0.202/modules/bouncedcc.cpp 2012-01-07 14:47:20.436704782 +0100 +@@ -238,7 +238,7 @@ + CDCCBounce* pSock = (CDCCBounce*) *it; + + if (pSock->GetLocalPort() == uResumePort) { +- m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + m_pClient->GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + "\001"); ++ m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + m_pUser->GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + "\001"); + } + } + } else if (sType.Equals("ACCEPT")) { +@@ -248,7 +248,7 @@ + CDCCBounce* pSock = (CDCCBounce*) *it; + + if (pSock->GetUserPort() == sMessage.Token(3).ToUShort()) { +- m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + m_pClient->GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetLocalPort()) + " " + sMessage.Token(4) + "\001"); ++ m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + m_pUser->GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetLocalPort()) + " " + sMessage.Token(4) + "\001"); + } + } + } |