Skip to content

Commit 6fc3a62

Browse files
committed
C++/C#/Java: Change another caller of localFlow
There was also a use of `localFlowStep` in `DataFlowImplCommon` that should now be `simpleLocalFlowStep`.
1 parent ec2cc5a commit 6fc3a62

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private module ImplCommon {
3535
or
3636
exists(Node mid |
3737
parameterValueFlowNoCtx(p, mid) and
38-
localFlowStep(mid, node) and
38+
simpleLocalFlowStep(mid, node) and
3939
compatibleTypes(p.getType(), node.getType())
4040
)
4141
or
@@ -152,7 +152,7 @@ private module ImplCommon {
152152
or
153153
exists(Node mid |
154154
parameterValueFlow(p, mid, cc) and
155-
localFlowStep(mid, node) and
155+
simpleLocalFlowStep(mid, node) and
156156
compatibleTypes(p.getType(), node.getType())
157157
)
158158
or
@@ -209,7 +209,7 @@ private module ImplCommon {
209209
* through a value-preserving method.
210210
*/
211211
private predicate localValueStep(Node node1, Node node2) {
212-
localFlowStep(node1, node2) or
212+
simpleLocalFlowStep(node1, node2) or
213213
argumentValueFlowsThrough(node1, node2, _)
214214
}
215215

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private module ImplCommon {
3535
or
3636
exists(Node mid |
3737
parameterValueFlowNoCtx(p, mid) and
38-
localFlowStep(mid, node) and
38+
simpleLocalFlowStep(mid, node) and
3939
compatibleTypes(p.getType(), node.getType())
4040
)
4141
or
@@ -152,7 +152,7 @@ private module ImplCommon {
152152
or
153153
exists(Node mid |
154154
parameterValueFlow(p, mid, cc) and
155-
localFlowStep(mid, node) and
155+
simpleLocalFlowStep(mid, node) and
156156
compatibleTypes(p.getType(), node.getType())
157157
)
158158
or
@@ -209,7 +209,7 @@ private module ImplCommon {
209209
* through a value-preserving method.
210210
*/
211211
private predicate localValueStep(Node node1, Node node2) {
212-
localFlowStep(node1, node2) or
212+
simpleLocalFlowStep(node1, node2) or
213213
argumentValueFlowsThrough(node1, node2, _)
214214
}
215215

csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private module ImplCommon {
3535
or
3636
exists(Node mid |
3737
parameterValueFlowNoCtx(p, mid) and
38-
localFlowStep(mid, node) and
38+
simpleLocalFlowStep(mid, node) and
3939
compatibleTypes(p.getType(), node.getType())
4040
)
4141
or
@@ -152,7 +152,7 @@ private module ImplCommon {
152152
or
153153
exists(Node mid |
154154
parameterValueFlow(p, mid, cc) and
155-
localFlowStep(mid, node) and
155+
simpleLocalFlowStep(mid, node) and
156156
compatibleTypes(p.getType(), node.getType())
157157
)
158158
or
@@ -209,7 +209,7 @@ private module ImplCommon {
209209
* through a value-preserving method.
210210
*/
211211
private predicate localValueStep(Node node1, Node node2) {
212-
localFlowStep(node1, node2) or
212+
simpleLocalFlowStep(node1, node2) or
213213
argumentValueFlowsThrough(node1, node2, _)
214214
}
215215

java/ql/src/semmle/code/java/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private module ImplCommon {
3535
or
3636
exists(Node mid |
3737
parameterValueFlowNoCtx(p, mid) and
38-
localFlowStep(mid, node) and
38+
simpleLocalFlowStep(mid, node) and
3939
compatibleTypes(p.getType(), node.getType())
4040
)
4141
or
@@ -152,7 +152,7 @@ private module ImplCommon {
152152
or
153153
exists(Node mid |
154154
parameterValueFlow(p, mid, cc) and
155-
localFlowStep(mid, node) and
155+
simpleLocalFlowStep(mid, node) and
156156
compatibleTypes(p.getType(), node.getType())
157157
)
158158
or
@@ -209,7 +209,7 @@ private module ImplCommon {
209209
* through a value-preserving method.
210210
*/
211211
private predicate localValueStep(Node node1, Node node2) {
212-
localFlowStep(node1, node2) or
212+
simpleLocalFlowStep(node1, node2) or
213213
argumentValueFlowsThrough(node1, node2, _)
214214
}
215215

0 commit comments

Comments
 (0)