mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
irc: fix crash when receiving a malformed message 352 (who)
Thanks to Stuart Nevans Locke for reporting the issue.
This commit is contained in:
@@ -4689,7 +4689,7 @@ IRC_PROTOCOL_CALLBACK(352)
|
||||
|
||||
if (argc > 8)
|
||||
{
|
||||
arg_start = (strcmp (argv[8], "*") == 0) ? 9 : 8;
|
||||
arg_start = ((argc > 9) && (strcmp (argv[8], "*") == 0)) ? 9 : 8;
|
||||
if (argv[arg_start][0] == ':')
|
||||
{
|
||||
pos_attr = NULL;
|
||||
|
||||
Reference in New Issue
Block a user