From 853c0d1b6835d132bd774335969d5e76d2073fde Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 29 Dec 2016 12:14:21 +0100 Subject: [PATCH] src/zapit/src/fastscan.cpp avoid out of bounds --- src/zapit/src/fastscan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zapit/src/fastscan.cpp b/src/zapit/src/fastscan.cpp index 96e5ed532..956d294e2 100644 --- a/src/zapit/src/fastscan.cpp +++ b/src/zapit/src/fastscan.cpp @@ -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; }