File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
swift/ql/lib/codeql/swift/frameworks/StandardLibrary Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ private class CollectionSummaries extends SummaryModelCsv {
26
26
";Collection;true;split(separator:maxSplits:omittingEmptySubsequences:);;;Argument[-1];ReturnValue;taint" ,
27
27
";Collection;true;removeFirst();;;Argument[-1];ReturnValue;taint" ,
28
28
";Collection;true;popFirst();;;Argument[-1];ReturnValue;taint" ,
29
+ ";Collection;true;randomElement();;;Argument[-1].SetElement;ReturnValue.OptionalSome;value" ,
29
30
";RangeReplaceableCollection;true;append(_:);;;Argument[0];Argument[-1];taint" ,
30
31
";RangeReplaceableCollection;true;append(contentsOf:);;;Argument[0];Argument[-1];taint" ,
31
32
";RangeReplaceableCollection;true;remove(at:);;;Argument[-1];ReturnValue;taint" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ private class SetSummaries extends SummaryModelCsv {
9
9
[
10
10
";Set;true;insert(_:);;;Argument[-1].SetElement;ReturnValue.TupleElement[1];value" ,
11
11
";Set;true;insert(_:);;;Argument[0];Argument[-1].SetElement;value" ,
12
- ";Set;true;randomElement();;;Argument[-1].SetElement;ReturnValue;value"
12
+ ";Set;true;insert(_:);;;Argument[0];ReturnValue.TupleElement[1];value" ,
13
+ ";Set;true;init(_:);;;Argument[0].ArrayElement;ReturnValue.SetElement;value"
13
14
]
14
15
}
15
16
}
You can’t perform that action at this time.
0 commit comments