Skip to content

Rb: use instanceof instead of extends on DataFlow::CallNode in some case #11397

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
Nov 23, 2022

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Nov 23, 2022

I noticed an override DataFlow::Node getAnArgument in classes that extends DataFlow::CallNode.
That is just a foot-gun waiting to happen if DataFlow::CallNode gets an getAnArgument predicate, so I changed those classes to instanceof DataFlow::CallNode.

Drive-by cleanup of imports in Open3.qll based on feedback from QL-for-QL.

@github-actions github-actions bot added the Ruby label Nov 23, 2022
@erik-krogh erik-krogh marked this pull request as ready for review November 23, 2022 14:27
@erik-krogh erik-krogh requested a review from a team as a code owner November 23, 2022 14:27
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

LGTM. Let's do a DCA run before merging.

@erik-krogh erik-krogh added the no-change-note-required This PR does not need a change note label Nov 23, 2022
@erik-krogh
Copy link
Contributor Author

@erik-krogh erik-krogh merged commit 3d4f64f into github:main Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants