mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
src/zapit/src/fastscan.cpp avoid out of bounds
This commit is contained in:
@@ -293,7 +293,7 @@ _err:
|
|||||||
|
|
||||||
bool CServiceScan::ReadFstVersion(int num)
|
bool CServiceScan::ReadFstVersion(int num)
|
||||||
{
|
{
|
||||||
if(num >= OPERATOR_MAX) {
|
if(num >= OPERATOR_MAX || num < 0) {
|
||||||
printf("[fast scan] invalid operator %d\n", num);
|
printf("[fast scan] invalid operator %d\n", num);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user