Skip to content

C++: Exclude StdNamespace sources in cpp/constant-size-array-off-by-one #13318

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

Conversation

MathiasVP
Copy link
Contributor

Various containers in the standard library apply the small string optimization, and we can't currently reason about the path conditions that makes it clear that these accesses are safe. So for now we decided to just exclude them from the query to reduce the number of results.

… is causing a lot of FPs. Let's exclude this for now to reduce the number of results for this query.
@MathiasVP MathiasVP requested a review from a team as a code owner May 30, 2023 14:33
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label May 30, 2023
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 (once we have some green CI and some ok DCA results)

@github-actions github-actions bot added the C++ label May 30, 2023
@MathiasVP
Copy link
Contributor Author

DCA looks good. We lose a couple of results, and these are the ones we expected to lose (i.e., results in the std namespace). I merged in main to get CI to run properly.

@MathiasVP MathiasVP merged commit a646749 into github:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants