mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +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.
13 lines
487 B
Plaintext
13 lines
487 B
Plaintext
import python
|
|
import semmle.python.pointsto.PointsTo
|
|
import semmle.python.objects.ObjectInternal
|
|
import semmle.python.pointsto.PointsToContext
|
|
|
|
from
|
|
ControlFlowNode test, ControlFlowNode use, ObjectInternal val, boolean eval, PointsToContext ctx
|
|
where
|
|
PointsTo::pointsTo(use, ctx, val, _) and
|
|
eval = Conditionals::testEvaluates(test, use, ctx, val, _)
|
|
select test.getLocation().getStartLine(), test.getNode().toString(), eval.toString(),
|
|
use.getNode().toString(), val.toString()
|