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:
@@ -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)
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user