mirror of
https://github.com/github/codeql.git
synced 2026-01-07 03:30:24 +01:00
Merge pull request #13816 from geoffw0/contig2
Swift: Use enum content in withContiguousStorageIfAvailable model.
This commit is contained in:
@@ -26,7 +26,7 @@ private class SequenceSummaries extends SummaryModelCsv {
|
||||
";Sequence;true;joined(separator:);;;Argument[-1..0];ReturnValue;taint",
|
||||
";Sequence;true;first(where:);;;Argument[-1];ReturnValue;taint",
|
||||
";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1];Argument[0].Parameter[0];taint",
|
||||
";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[0].ReturnValue;ReturnValue;taint",
|
||||
";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[0].ReturnValue;ReturnValue.OptionalSome;value",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -639,7 +639,7 @@ func furtherTaintThroughCallbacks() {
|
||||
ptr in
|
||||
return source()
|
||||
}) {
|
||||
sink(arg: result4) // $ MISSING: tainted=640
|
||||
sink(arg: result4) // $ tainted=640
|
||||
}
|
||||
|
||||
// using a non-closure function
|
||||
|
||||
Reference in New Issue
Block a user