Open trentn opened 6 months ago
Hi @trentn 👋
Thanks for reporting this. I have passed this on to our Python team for them to have a look at it.
Thanks for your detailed report. I have something in the works that should fix this, will update this issue once I publish my PR :+1:
PR up here: https://github.com/github/codeql/pull/16670
I'm testing out dataflow and taint tracking analysis on Python and I've run into a example where the dataflow analysis should find a path, but fails because a class variable is accessed as an instance variable.
Here is the dataflow query
The query correctly identfies the path from
input()
toprint()
in this snippet:But it fails for this snippet:
The only difference is that the first example uses
test = Test2.t()
and the second example usestest = self.t()
in the functionfunc
defined inTest2
This seems related to #14842, #14899 and https://github.com/github/codeql/discussions/9684