src/gui/channellist.cpp fix possible segfault (heap-buffer-overflow)

This commit is contained in:
Jacek Jendrzej
2016-01-04 13:50:36 +01:00
parent a6537c766b
commit 597f10d920

View File

@@ -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();