Skip to content

Commit

Permalink
Check all indirections
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 6, 2023
1 parent 3dc13dc commit ae44419
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2578,8 +2578,9 @@ struct ValueFlowAnalyzer : Analyzer {
++indirect;
}
}
if (isVariableChanged(tok, indirect, getSettings(), isCPP()))
return Action::Invalid;
for (int i = 0; i <= indirect; ++i)
if (isVariableChanged(tok, i, getSettings(), isCPP()))
return Action::Invalid;
return Action::None;
}

Expand Down

0 comments on commit ae44419

Please sign in to comment.