-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rust: Add another disjunct to postWithInFlowExclude
#19195
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- rust/ql/lib/codeql/rust/dataflow/internal/DataFlowConsistency.qll: Language not supported
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
@@ -20,6 +21,8 @@ private module Input implements InputSig<Location, RustDataFlow> { | |||
n.(Node::PostUpdateNode).getPreUpdateNode().asExpr() = any(Node::ReceiverNode r).getReceiver() | |||
or | |||
n.(Node::PostUpdateNode).getPreUpdateNode().asExpr() = getPostUpdateReverseStep(_, _) | |||
or | |||
FlowSummaryImpl::Private::Steps::sourceLocalStep(_, n, _) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do? Why doesn't it affect any tests? Would any changes show up in a DCA run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It affects the tests in your PR. DCA will report fewer data flow inconsistencies, but it is hardly worth spending CPU cycles on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed - it works. :)
No description provided.