mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01:00
10 lines
301 B
Plaintext
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
|