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 (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)
|
CZapitChannel* CChannelList::getPrevNextChannel(int key, unsigned int &sl)
|
||||||
{
|
{
|
||||||
|
if(sl >= (*chanlist).size())
|
||||||
|
sl = (*chanlist).size()-1;
|
||||||
|
|
||||||
CZapitChannel* channel = (*chanlist)[sl];
|
CZapitChannel* channel = (*chanlist)[sl];
|
||||||
int bsize = bouquetList->Bouquets.size();
|
int bsize = bouquetList->Bouquets.size();
|
||||||
int bactive = bouquetList->getActiveBouquetNumber();
|
int bactive = bouquetList->getActiveBouquetNumber();
|
||||||
|
Reference in New Issue
Block a user