fix an off by 1 error introduced in 48e6ea271a that prevented checking all variables

This commit is contained in:
Robert Reif 2011-06-23 22:31:16 -04:00
parent 387fd35ff3
commit 65ecbfd4ff
1 changed files with 1 additions and 1 deletions

View File

@ -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())