mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02:00
Don't accept pos<0 or len<0 in gui_entry_set_color
This commit is contained in:
parent
13b93c8c05
commit
0f1b3873fe
1 changed files with 1 additions and 1 deletions
|
|
@ -1107,7 +1107,7 @@ void gui_entry_set_color(GUI_ENTRY_REC *entry, int pos, int len, int color)
|
||||||
|
|
||||||
g_return_if_fail(entry != NULL);
|
g_return_if_fail(entry != NULL);
|
||||||
|
|
||||||
if (pos > entry->text_len)
|
if (pos < 0 || len < 0 || pos > entry->text_len)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
end = pos + len;
|
end = pos + len;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue