mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
PS: Add an edge from the root node to automatic variables, and from a member read qualifier to a read.
This commit is contained in:
@@ -527,8 +527,18 @@ module API {
|
||||
pred = MkNamespaceOfTypeNameNode(typeName) and
|
||||
succ = getForwardStartNode(typeName)
|
||||
)
|
||||
// or
|
||||
// TODO: Handle getAMember when the predecessor is a MkUsingNode?
|
||||
or
|
||||
pred = MkRoot() and
|
||||
exists(DataFlow::AutomaticVariableNode automatic |
|
||||
automatic.getName() = name and
|
||||
succ = getForwardStartNode(automatic)
|
||||
)
|
||||
or
|
||||
exists(MemberExprReadAccess read |
|
||||
read.getMemberName().toLowerCase() = name and
|
||||
pred = getForwardEndNode(getALocalSourceStrict(getNodeFromExpr(read.getQualifier()))) and
|
||||
succ = getForwardStartNode(getNodeFromExpr(read))
|
||||
)
|
||||
}
|
||||
|
||||
cached
|
||||
|
||||
Reference in New Issue
Block a user