mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
src/gui/channellist.cpp fix possible segfault after edit mode (heap-buffer-overflow)
Origin commit data
------------------
Branch: ni/coolstream
Commit: d6246131d2
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-19 (Sat, 19 Dec 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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