mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Fix out of bounds access in event_wallops().
bug #662 Submitted by: nemo git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5068 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6aa167e5ac
commit
1f9c560a74
@ -298,7 +298,7 @@ static void event_wallops(IRC_SERVER_REC *server, const char *data, const char *
|
|||||||
|
|
||||||
tmp = g_strdup(data+8);
|
tmp = g_strdup(data+8);
|
||||||
len = strlen(tmp);
|
len = strlen(tmp);
|
||||||
if (tmp[len-1] == 1) tmp[len-1] = '\0';
|
if (len >= 1 && tmp[len-1] == 1) tmp[len-1] = '\0';
|
||||||
printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_ACTION_WALLOPS, nick, tmp);
|
printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_ACTION_WALLOPS, nick, tmp);
|
||||||
g_free(tmp);
|
g_free(tmp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user