Python: Fix missing global variable source nodes

In lieu of removing the offending flow (which would likely have
consequences for a lot of other tests), I opted to simply _include_
the relevant nodes directly.
This commit is contained in:
Taus Brock-Nannestad
2021-02-04 18:07:13 +01:00
parent 2524f23a46
commit f6e1ea5b2a
2 changed files with 3 additions and 1 deletions

View File

@@ -446,6 +446,8 @@ class LocalSourceNode extends Node {
LocalSourceNode() {
not simpleLocalFlowStep+(any(CfgNode n), this) and
not this instanceof ModuleVariableNode
or
this = any(ModuleVariableNode mvn).getARead()
}
/** Holds if this `LocalSourceNode` can flow to `nodeTo` in one or more local flow steps. */