mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
C++/C#/Java: Change another caller of localFlow
There was also a use of `localFlowStep` in `DataFlowImplCommon` that should now be `simpleLocalFlowStep`.
This commit is contained in:
@@ -35,7 +35,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlowNoCtx(p, mid) and
|
parameterValueFlowNoCtx(p, mid) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -152,7 +152,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlow(p, mid, cc) and
|
parameterValueFlow(p, mid, cc) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -209,7 +209,7 @@ private module ImplCommon {
|
|||||||
* through a value-preserving method.
|
* through a value-preserving method.
|
||||||
*/
|
*/
|
||||||
private predicate localValueStep(Node node1, Node node2) {
|
private predicate localValueStep(Node node1, Node node2) {
|
||||||
localFlowStep(node1, node2) or
|
simpleLocalFlowStep(node1, node2) or
|
||||||
argumentValueFlowsThrough(node1, node2, _)
|
argumentValueFlowsThrough(node1, node2, _)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlowNoCtx(p, mid) and
|
parameterValueFlowNoCtx(p, mid) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -152,7 +152,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlow(p, mid, cc) and
|
parameterValueFlow(p, mid, cc) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -209,7 +209,7 @@ private module ImplCommon {
|
|||||||
* through a value-preserving method.
|
* through a value-preserving method.
|
||||||
*/
|
*/
|
||||||
private predicate localValueStep(Node node1, Node node2) {
|
private predicate localValueStep(Node node1, Node node2) {
|
||||||
localFlowStep(node1, node2) or
|
simpleLocalFlowStep(node1, node2) or
|
||||||
argumentValueFlowsThrough(node1, node2, _)
|
argumentValueFlowsThrough(node1, node2, _)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlowNoCtx(p, mid) and
|
parameterValueFlowNoCtx(p, mid) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -152,7 +152,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlow(p, mid, cc) and
|
parameterValueFlow(p, mid, cc) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -209,7 +209,7 @@ private module ImplCommon {
|
|||||||
* through a value-preserving method.
|
* through a value-preserving method.
|
||||||
*/
|
*/
|
||||||
private predicate localValueStep(Node node1, Node node2) {
|
private predicate localValueStep(Node node1, Node node2) {
|
||||||
localFlowStep(node1, node2) or
|
simpleLocalFlowStep(node1, node2) or
|
||||||
argumentValueFlowsThrough(node1, node2, _)
|
argumentValueFlowsThrough(node1, node2, _)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlowNoCtx(p, mid) and
|
parameterValueFlowNoCtx(p, mid) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -152,7 +152,7 @@ private module ImplCommon {
|
|||||||
or
|
or
|
||||||
exists(Node mid |
|
exists(Node mid |
|
||||||
parameterValueFlow(p, mid, cc) and
|
parameterValueFlow(p, mid, cc) and
|
||||||
localFlowStep(mid, node) and
|
simpleLocalFlowStep(mid, node) and
|
||||||
compatibleTypes(p.getType(), node.getType())
|
compatibleTypes(p.getType(), node.getType())
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
@@ -209,7 +209,7 @@ private module ImplCommon {
|
|||||||
* through a value-preserving method.
|
* through a value-preserving method.
|
||||||
*/
|
*/
|
||||||
private predicate localValueStep(Node node1, Node node2) {
|
private predicate localValueStep(Node node1, Node node2) {
|
||||||
localFlowStep(node1, node2) or
|
simpleLocalFlowStep(node1, node2) or
|
||||||
argumentValueFlowsThrough(node1, node2, _)
|
argumentValueFlowsThrough(node1, node2, _)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user