C++: Fix global variable exclusion in DTT.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-01-16 15:21:16 +00:00
parent 8c224429b3
commit ee62f2a223

View File

@@ -622,6 +622,8 @@ module TaintedWithPath {
private predicate isGlobalVariablePathNode(WrapPathNode n) {
n.inner().getNode().asVariable() instanceof GlobalOrNamespaceVariable
or
n.inner().getNode().asIndirectVariable() instanceof GlobalOrNamespaceVariable
}
private predicate edgesWithoutGlobals(PathNode a, PathNode b) {