mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +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]);
|
||||
}
|
||||
|
||||
if(selected >= (*chanlist).size())
|
||||
selected = (*chanlist).size()-1;
|
||||
|
||||
if (curr == selected) {
|
||||
color = COL_MENUCONTENTSELECTED_TEXT;
|
||||
bgcolor = COL_MENUCONTENTSELECTED_PLUS_0;
|
||||
|
Reference in New Issue
Block a user