Skip to content

C++: Block flow through back-edges in cpp/overrun-write #13149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 16, 2023

Conversation

MathiasVP
Copy link
Contributor

This PR fixes a class of false positives involving flow through back edges for the cpp/overrun-write query. The fix is identical to the one applied to the cpp/invalid-pointer-deref in this PR.

Keeping this as a draft until I can run it on DCA.

Copy link
Contributor

@jketema jketema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Provided we can get a good DCA run.

@MathiasVP MathiasVP marked this pull request as ready for review May 16, 2023 11:52
@MathiasVP MathiasVP requested a review from a team as a code owner May 16, 2023 11:52
@MathiasVP
Copy link
Contributor Author

Two lost results. Both of which are FPs due to an unbounded loop in the second projection of the product-flow graph that continuously increment the state.

As an extra bonus: Surprisingly, this PR fixes the performance problem on vim/vim that #13142 was supposed to fix 😂.

@jketema jketema merged commit e8423f8 into github:main May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants