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:
Tom Hvitved
2024-03-18 10:45:55 +01:00
committed by GitHub
6 changed files with 89 additions and 214 deletions

View File

@@ -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()