Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
irc/quassel: Import patch to resolve DoS CVE Approved by: ports-secteam (with hat) Security: CVE-2015-8547
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Fix CVE-2015-8547 | ||
--- src/core/coreuserinputhandler.cpp.orig 2015-04-23 20:47:17 UTC | ||
+++ src/core/coreuserinputhandler.cpp | ||
@@ -228,7 +228,7 @@ void CoreUserInputHandler::doMode(const | ||
if (!isNumber || maxModes == 0) maxModes = 1; | ||
|
||
QStringList nickList; | ||
- if (nicks == "*") { // All users in channel | ||
+ if (nicks == "*" && bufferInfo.type() == BufferInfo::ChannelBuffer) { // All users in channel | ||
const QList<IrcUser*> users = network()->ircChannel(bufferInfo.bufferName())->ircUsers(); | ||
foreach(IrcUser *user, users) { | ||
if ((addOrRemove == '+' && !network()->ircChannel(bufferInfo.bufferName())->userModes(user).contains(mode)) |