1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

irc: fix crash on /list buffer when a filter is set (closes #2197)

This commit is contained in:
Sébastien Helleu
2024-10-05 07:48:22 +02:00
parent 94312b6622
commit 423f609828
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@
- core, plugins: fix integer overflow in loops ([#2178](https://github.com/weechat/weechat/issues/2178)), [CVE-2024-46613](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-46613))
- irc: decode IRC colors only when displaying messages in buffer, store nick info with IRC colors (host, account, real name)
- irc: do not strip trailing spaces from incoming IRC messages
- irc: fix crash on /list buffer when a filter is set ([#2197](https://github.com/weechat/weechat/issues/2197))
- relay/api: fix empty nicklist in remote buffers after connection or reconnection
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
+6
View File
@@ -506,6 +506,12 @@ irc_list_display_line (struct t_irc_server *server, int line)
ptr_channel = (struct t_irc_list_channel *)weechat_arraylist_get (
server->list->filter_channels, line);
if (!ptr_channel)
{
weechat_printf_y (server->list->buffer, line, "");
return;
}
/* line color */
if (line == server->list->selected_line)
{