Files
codeql/python/ql/test/library-tests/PointsTo/regressions/missing/uncalled-function/Test.ql
2020-04-20 14:41:45 +02:00

11 lines
292 B
Plaintext

import python
from ControlFlowNode arg, CallNode call, string debug
where
call.getAnArg() = arg and
call.getFunction().(NameNode).getId() = "check" and
if exists(arg.pointsTo())
then debug = arg.pointsTo().toString()
else debug = "<MISSING pointsTo()>"
select arg, debug