src/zapit/src/fastscan.cpp avoid out of bounds

This commit is contained in:
Jacek Jendrzej
2016-12-29 12:14:21 +01:00
parent 95c619ad88
commit 853c0d1b68

View File

@@ -293,7 +293,7 @@ _err:
bool CServiceScan::ReadFstVersion(int num)
{
if(num >= OPERATOR_MAX) {
if(num >= OPERATOR_MAX || num < 0) {
printf("[fast scan] invalid operator %d\n", num);
return false;
}