Skip to content

Commit ffca52e

Browse files
authored
Merge pull request #19195 from hvitved/rust/post-with-flow-in-exclude
Rust: Add another disjunct to `postWithInFlowExclude`
2 parents 8e9e772 + 8663f3b commit ffca52e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/DataFlowConsistency.qll

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import codeql.rust.dataflow.DataFlow::DataFlow as DataFlow
22
private import rust
33
private import codeql.rust.dataflow.internal.DataFlowImpl
4+
private import codeql.rust.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
45
private import codeql.rust.dataflow.internal.Node as Node
56
private import codeql.rust.dataflow.internal.TaintTrackingImpl
67
private import codeql.dataflow.internal.DataFlowImplConsistency
@@ -20,6 +21,8 @@ private module Input implements InputSig<Location, RustDataFlow> {
2021
n.(Node::PostUpdateNode).getPreUpdateNode().asExpr() = any(Node::ReceiverNode r).getReceiver()
2122
or
2223
n.(Node::PostUpdateNode).getPreUpdateNode().asExpr() = getPostUpdateReverseStep(_, _)
24+
or
25+
FlowSummaryImpl::Private::Steps::sourceLocalStep(_, n, _)
2326
}
2427

2528
predicate missingLocationExclude(RustDataFlow::Node n) { not exists(n.asExpr().getLocation()) }

0 commit comments

Comments
 (0)