1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

core: fix buffer overflow in function eval_syntax_highlight_colorize

This commit is contained in:
Sébastien Helleu
2025-05-10 09:49:45 +02:00
parent b32f8662bc
commit aa54d3653c
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -28,6 +28,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
- core: fix integer overflow with decimal numbers in calculation of expression
- core: fix integer overflow in base32 encoding/decoding
- core: fix buffer overflow in function util_parse_time
- core: fix buffer overflow in function eval_syntax_highlight_colorize
- core: fix memory leak in function util_parse_delay
- irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ([#2241](https://github.com/weechat/weechat/issues/2241))
- perl: fix build when multiplicity is not available ([#2243](https://github.com/weechat/weechat/issues/2243))
+2 -1
View File
@@ -1574,7 +1574,8 @@ eval_syntax_highlight_colorize (const char *value)
else if (ptr_value[0] == '-')
color--;
}
ptr_value++;
if (ptr_value[0])
ptr_value++;
if (config_num_eval_syntax_colors > 0)
{
string_dyn_concat (