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

Origin commit data
------------------
Commit: 853c0d1b68
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-29 (Thu, 29 Dec 2016)
This commit is contained in:
Jacek Jendrzej
2016-12-29 12:14:21 +01:00
parent e973c28e0f
commit 0bfddb0ffd

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;
}