mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
Will need subsequent PRs fixing up test failures (due to deprecated methods moving around), but other than that everything should be straight-forward.
12 lines
449 B
Plaintext
12 lines
449 B
Plaintext
import python
|
|
import semmle.python.dataflow.TaintTracking
|
|
import Taint
|
|
|
|
from TaintedNode n, TaintedNode s
|
|
where
|
|
n.getLocation().getFile().getShortName() = "test.py" and
|
|
s.getLocation().getFile().getShortName() = "test.py" and
|
|
s = n.getASuccessor()
|
|
select "Taint " + n.getTaintKind(), n.getLocation().toString(), n.getAstNode(), n.getContext(),
|
|
" --> ", "Taint " + s.getTaintKind(), s.getLocation().toString(), s.getAstNode(), s.getContext()
|