mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
Merge pull request #15802 from hvitved/dataflow/variable-capture-overlapping-paths
Variable capture: Avoid overlapping and false-positive data flow paths
This commit is contained in:
@@ -34,7 +34,7 @@ def by_value1():
|
||||
a = SOURCE
|
||||
def inner(a_val=a):
|
||||
SINK(a_val) #$ captured
|
||||
SINK_F(a) #$ SPURIOUS: captured
|
||||
SINK_F(a)
|
||||
a = NONSOURCE
|
||||
inner()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user