You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 50bc17b
Browse filesBrowse the repository at this point in the historyBrowse files
Fix #15266 FN knownConditionTrueFalse/uninitvar: ValueFlow drops the path where a flag is set in a nested branch or loop (regression of #15042)
The then-path of an if is carried past it on a fork, but only to the end of the current range. Inside a branch or loop body it ends at the block end, while the traversal assumed its condition false, so e.g. a branch on a flag set in a nested if or loop got no values (knownConditionTrueFalse, uninitvar and nullPointer false negatives). Now when that happens the traversal drops the program state it learned in the block at the block end, so it stands for the lost path afterwards; inside the block it stays precise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments