Skip to content

Data flow: Move toNormalSinkNodeEx into PathNodeMid #17313

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 2 commits into from
Aug 28, 2024

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Aug 27, 2024

#17262 follow-up.

The C++ query InvalidPointerDeref.ql makes use of an inlined isSink predicate, presumably in order to only calculate the predicate based on what is forwards reachable in the initial pruning stage.

It is perhaps questionable to rely on the data flow library being able to support this, but this PR at least restores that functionality.

@MathiasVP
Copy link
Contributor

Just putting this here: https://www.hyrumslaw.com/

On a more serious note: That's exactly what the inlined isSink predicate was meant to accomplish, yes 🙂

@hvitved hvitved marked this pull request as ready for review August 28, 2024 07:01
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Aug 28, 2024
Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

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

🤯

@hvitved hvitved merged commit 22e1921 into github:main Aug 28, 2024
30 of 31 checks passed
@hvitved hvitved deleted the dataflow/to-normal-sink-node-ex branch August 28, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataFlow Library 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