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 (heap-buffer-overflow)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 597f10d920
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-01-04 (Mon, 04 Jan 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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