mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
core: fix crash in case of NULL message sent to function gui_chat_printf_y_date_tags (issue #1883)
This commit is contained in:
@@ -21,6 +21,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
Bug fixes::
|
||||
|
||||
* core, plugins: fix integer overflow in loops (issue #2178)
|
||||
* core: fix crash in case of NULL message sent to function gui_chat_printf_y_date_tags (issue #1883)
|
||||
|
||||
Build::
|
||||
|
||||
|
||||
@@ -906,6 +906,9 @@ gui_chat_printf_y_date_tags (struct t_gui_buffer *buffer, int y, time_t date,
|
||||
time_t date_printed;
|
||||
int i, last_y, num_lines_to_add;
|
||||
|
||||
if (!message)
|
||||
return;
|
||||
|
||||
if (gui_init_ok && !gui_chat_buffer_valid (buffer, GUI_BUFFER_TYPE_FREE))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user