mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
src/gui/channellist.cpp fix possible segfault after edit mode (heap-buffer-overflow)
This commit is contained in:
@@ -1850,6 +1850,9 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
|||||||
iscurrent = SameTP((*chanlist)[curr]);
|
iscurrent = SameTP((*chanlist)[curr]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(selected >= (*chanlist).size())
|
||||||
|
selected = (*chanlist).size()-1;
|
||||||
|
|
||||||
if (curr == selected) {
|
if (curr == selected) {
|
||||||
color = COL_MENUCONTENTSELECTED_TEXT;
|
color = COL_MENUCONTENTSELECTED_TEXT;
|
||||||
bgcolor = COL_MENUCONTENTSELECTED_PLUS_0;
|
bgcolor = COL_MENUCONTENTSELECTED_PLUS_0;
|
||||||
|
Reference in New Issue
Block a user