Skip to content

Commit ee62f2a

Browse files
committed
C++: Fix global variable exclusion in DTT.
1 parent 8c22442 commit ee62f2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DefaultTaintTrackingImpl.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ module TaintedWithPath {
622622

623623
private predicate isGlobalVariablePathNode(WrapPathNode n) {
624624
n.inner().getNode().asVariable() instanceof GlobalOrNamespaceVariable
625+
or
626+
n.inner().getNode().asIndirectVariable() instanceof GlobalOrNamespaceVariable
625627
}
626628

627629
private predicate edgesWithoutGlobals(PathNode a, PathNode b) {

0 commit comments

Comments
 (0)