Skip to content

Commit 6020e4d

Browse files
committed
C#/Go/Python/Ruby/Swift: Fix some more references.
1 parent 1c3b8e2 commit 6020e4d

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

csharp/ql/consistency-queries/DataFlowConsistency.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ private class MyConsistencyConfiguration extends ConsistencyConfiguration {
3737
}
3838

3939
override predicate postWithInFlowExclude(Node n) {
40-
n instanceof SummaryNode
40+
n instanceof FlowSummaryNode
4141
or
4242
n.asExpr().(ObjectCreation).hasInitializer()
4343
}
4444

4545
override predicate argHasPostUpdateExclude(ArgumentNode n) {
46-
n instanceof SummaryNode
46+
n instanceof FlowSummaryNode
4747
or
4848
not exists(LocalFlow::getAPostUpdateNodeForArg(n.getControlFlowNode()))
4949
or

go/ql/lib/semmle/go/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ predicate localAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
9696
sliceStep(pred, succ) or
9797
any(FunctionModel fm).taintStep(pred, succ) or
9898
any(AdditionalTaintStep a).step(pred, succ) or
99-
FlowSummaryImpl::Private::Steps::summaryLocalStep(pred.(DataFlowPrivate::FlowSummaryNode).getSummaryNode(),
100-
succ.(DataFlowPrivate::FlowSummaryNode).getSummaryNode(), false)
99+
FlowSummaryImpl::Private::Steps::summaryLocalStep(pred.(DataFlowPrivate::FlowSummaryNode)
100+
.getSummaryNode(), succ.(DataFlowPrivate::FlowSummaryNode).getSummaryNode(), false)
101101
}
102102

103103
/**

python/ql/lib/semmle/python/dataflow/new/internal/TaintTrackingPrivate.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ private module Cached {
5757
or
5858
asyncWithStep(nodeFrom, nodeTo)
5959
or
60-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom, nodeTo, false)
60+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom
61+
.(DataFlowPrivate::FlowSummaryNode)
62+
.getSummaryNode(), nodeTo.(DataFlowPrivate::FlowSummaryNode).getSummaryNode(), false)
6163
}
6264
}
6365

ruby/ql/consistency-queries/DataFlowConsistency.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import codeql.ruby.dataflow.internal.DataFlowPrivate
55
import codeql.ruby.dataflow.internal.DataFlowImplConsistency::Consistency
66

77
private class MyConsistencyConfiguration extends ConsistencyConfiguration {
8-
override predicate postWithInFlowExclude(Node n) { n instanceof SummaryNode }
8+
override predicate postWithInFlowExclude(Node n) { n instanceof FlowSummaryNode }
99

1010
override predicate argHasPostUpdateExclude(ArgumentNode n) {
1111
n instanceof BlockArgumentNode
1212
or
13-
n instanceof SummaryNode
13+
n instanceof FlowSummaryNode
1414
or
1515
n instanceof SynthHashSplatArgumentNode
1616
or

swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ private module Cached {
6868
)
6969
or
7070
// flow through a flow summary (extension of `SummaryModelCsv`)
71-
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom
72-
.(DataFlowPrivate::FlowSummaryNode)
73-
.getSummaryNode(), nodeTo.(DataFlowPrivate::FlowSummaryNode).getSummaryNode(), false)
71+
FlowSummaryImpl::Private::Steps::summaryLocalStep(nodeFrom.(FlowSummaryNode).getSummaryNode(),
72+
nodeTo.(FlowSummaryNode).getSummaryNode(), false)
7473
or
7574
any(AdditionalTaintStep a).step(nodeFrom, nodeTo)
7675
}

0 commit comments

Comments
 (0)