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 (heap-buffer-overflow)
This commit is contained in:
@@ -1386,6 +1386,9 @@ int CChannelList::numericZap(int key)
|
||||
|
||||
CZapitChannel* CChannelList::getPrevNextChannel(int key, unsigned int &sl)
|
||||
{
|
||||
if(sl >= (*chanlist).size())
|
||||
sl = (*chanlist).size()-1;
|
||||
|
||||
CZapitChannel* channel = (*chanlist)[sl];
|
||||
int bsize = bouquetList->Bouquets.size();
|
||||
int bactive = bouquetList->getActiveBouquetNumber();
|
||||
|
Reference in New Issue
Block a user