-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15802 from hvitved/dataflow/variable-capture-over…
…lapping-paths Variable capture: Avoid overlapping and false-positive data flow paths
- Loading branch information
Showing
6 changed files
with
89 additions
and
214 deletions.
There are no files selected for viewing
86 changes: 0 additions & 86 deletions
86
csharp/ql/test/library-tests/dataflow/global/DataFlowPath.expected
Large diffs are not rendered by default.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
csharp/ql/test/library-tests/dataflow/global/TaintTrackingPath.expected
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,3 +228,17 @@ def multi_capture | |
end | ||
|
||
multi_capture | ||
|
||
def m1 | ||
x = taint(19) | ||
|
||
fn1 = -> { | ||
sink x | ||
} | ||
|
||
x = nil | ||
|
||
fn1.call() | ||
end | ||
|
||
m1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters