mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
Merge pull request #12633 from erik-krogh/more-global-flow
JS: better callgraph support for global variables
This commit is contained in:
@@ -243,6 +243,11 @@ module AccessPath {
|
||||
root.isGlobal()
|
||||
)
|
||||
or
|
||||
exists(Assignment assign |
|
||||
fromReference(assign.getLhs().flow(), root) = result and
|
||||
node = assign.getRhs().flow()
|
||||
)
|
||||
or
|
||||
exists(FunctionDeclStmt fun |
|
||||
node = DataFlow::valueNode(fun) and
|
||||
result = fun.getIdentifier().(GlobalVarDecl).getName() and
|
||||
|
||||
Reference in New Issue
Block a user