Python: Update globalVariableAttrPathAtDepth base case

This commit is contained in:
Napalys Klicius
2025-08-07 14:55:50 +00:00
parent 6133f01c81
commit 8393ccf39d
2 changed files with 3 additions and 3 deletions

View File

@@ -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 |