mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Python: Don't pass synthetic class instance to __new__ on class calls
This commit is contained in:
@@ -405,11 +405,11 @@ def test__new__():
|
||||
# well.
|
||||
|
||||
SINK(NewTest.foo) # $ MISSING: flow="SOURCE, l:-10 -> NewTest.foo"
|
||||
SINK(nt.foo) # $ flow="SOURCE, l:-11 -> nt.foo"
|
||||
SINK(nt.foo) # $ MISSING: flow="SOURCE, l:-11 -> nt.foo"
|
||||
|
||||
NewTest.foo = NONSOURCE
|
||||
SINK_F(NewTest.foo)
|
||||
SINK_F(nt.foo) # $ SPURIOUS: flow="SOURCE, l:-15 -> nt.foo"
|
||||
SINK_F(nt.foo)
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Global scope
|
||||
|
||||
Reference in New Issue
Block a user