Skip to content

C++: Fix re-evaluation in cpp/return-stack-allocated-memory #7830

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

Conversation

MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented Feb 3, 2022

We were, once again, hit by the IR re-evaluation problem because we didn't import semmle.code.cpp.valuenumbering.GlobalValueNumbering before we imported the IR.

@MathiasVP MathiasVP added the C++ label Feb 3, 2022
@MathiasVP MathiasVP requested a review from a team as a code owner February 3, 2022 11:18
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label Feb 3, 2022
Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

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

I'm a little sad this is necessary, but thanks for fixing it!

@MathiasVP
Copy link
Contributor Author

I'm a little sad this is necessary, but thanks for fixing it!

Yeah, same :(

@intrigus-lgtm
Copy link
Contributor

OOI: could this problem be detected by a QL-for-QL query automatically?

@MathiasVP
Copy link
Contributor Author

OOI: could this problem be detected by a QL-for-QL query automatically?

Maybe it could. As far as I understand the underlying problem, a query for this would need to model a lot of implementation details related to the order in which the QL compiler traverses files on disk.

@MathiasVP MathiasVP merged commit bc17df5 into github:main Feb 4, 2022
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.

3 participants