Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 420a0bb

Browse files
author
Robert Marsh
committed
C++: handle namespace vars in DefautlTaintTracking
1 parent d99a90b commit 420a0bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ predicate taintedIncludingGlobalVars(Expr source, Element tainted, string global
206206
accessesVariable(load.asInstruction(), global) and
207207
fromCfg.hasFlow(load, sink) and
208208
tainted = adjustedSink(sink) and
209-
globalVar = global.toString()
209+
global = globalVarFromId(globalVar)
210210
)
211211
}
212212

0 commit comments

Comments
 (0)