mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
C++: handle namespace vars in DefautlTaintTracking
This commit is contained in:
@@ -206,7 +206,7 @@ predicate taintedIncludingGlobalVars(Expr source, Element tainted, string global
|
||||
accessesVariable(load.asInstruction(), global) and
|
||||
fromCfg.hasFlow(load, sink) and
|
||||
tainted = adjustedSink(sink) and
|
||||
globalVar = global.toString()
|
||||
global = globalVarFromId(globalVar)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user