1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +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 2e14645691
commit 334f88ae2c
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@
- core: fix integer overflow in base32 encoding/decoding
- core: fix integer overflow in function util_version_number
- 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
## Version 4.6.2 (2025-04-18)
+2 -1
View File
@@ -1572,7 +1572,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 (