mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Python: Update globalVariableAttrPathAtDepth base case
This commit is contained in:
@@ -604,7 +604,7 @@ predicate globalVariableAttrPathAtDepth(
|
||||
) {
|
||||
// Base case: Direct global variable access (depth 0)
|
||||
depth = 0 and
|
||||
node in [globalVar.getARead(), globalVar.getAWrite()] and
|
||||
node in [globalVar.getARead(), globalVar.getAWrite(), globalVar] and
|
||||
accessPath = ""
|
||||
or
|
||||
exists(Node obj, string attrName, string parentAccessPath, int parentDepth |
|
||||
|
||||
Reference in New Issue
Block a user