Skip to content
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

C++: Catch more returns of stack-allocated memory #14794

Merged

Conversation

MathiasVP
Copy link
Contributor

@andersfugmann reminded me that there's an evil family of functions that return stack-allocated memory, and that our cpp/return-stack-allocated-memory query isn't aware of these. This PR fixes this problem.

@MathiasVP MathiasVP requested a review from a team as a code owner November 15, 2023 11:53
@github-actions github-actions bot added the C++ label Nov 15, 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. I do like to see a complete DCA experiment.

@MathiasVP
Copy link
Contributor Author

Nothing exciting on DCA. Merging!

@MathiasVP MathiasVP merged commit 4d4ca6b into github:main Nov 15, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants