mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user