Files
codeql/python/ql/test/library-tests/PointsTo/regressions/wrong/classmethod/Test.ql
Rasmus Wriedt Larsen 5ec0716cb0 Python: Add points-to regression when using @classmethod decorators
Specifically a problem when using a second decorator
2020-03-24 11:39:08 +01:00

11 lines
290 B
Plaintext

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