fix an off by 1 error introduced in 48e6ea271a
that prevented checking all variables
This commit is contained in:
parent
387fd35ff3
commit
65ecbfd4ff
|
@ -2221,7 +2221,7 @@ void CheckBufferOverrun::executionPaths()
|
|||
{
|
||||
// Parse all variables and extract array info..
|
||||
std::map<unsigned int, ArrayInfo> arrayInfo;
|
||||
for (size_t i = 1; i < _tokenizer->varIdCount(); i++)
|
||||
for (size_t i = 1; i <= _tokenizer->varIdCount(); i++)
|
||||
{
|
||||
const Variable *var = _tokenizer->getSymbolDatabase()->getVariableFromVarId(i);
|
||||
if (var && var->isArray())
|
||||
|
|
Loading…
Reference in New Issue