Files
codeql/cpp/ql/test/library-tests/dataflow/taint-tests/localTaint.ql
2018-08-02 17:53:23 +01:00

10 lines
301 B
Plaintext

import cpp
import semmle.code.cpp.dataflow.TaintTracking
from DataFlow::Node nodeFrom, DataFlow::Node nodeTo, string msg
where TaintTracking::localTaintStep(nodeFrom, nodeTo)
and if DataFlow::localFlowStep(nodeFrom, nodeTo)
then msg = ""
else msg = "TAINT"
select nodeFrom, nodeTo, msg