File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ private class CollectionSummaries extends SummaryModelCsv {
36
36
";RangeReplaceableCollection;true;removeFirst();;;Argument[-1];ReturnValue;taint" ,
37
37
";RangeReplaceableCollection;true;removeLast();;;Argument[-1];ReturnValue;taint" ,
38
38
";RangeReplaceableCollection;true;insert(_:at:);;;Argument[0];Argument[-1];taint" ,
39
+ ";RangeReplaceableCollection;true;replaceSubrange(_:with:);;;Argument[1];Argument[-1];taint" ,
40
+ ";RangeReplaceableCollection;true;replaceSubrange(_:with:);;;Argument[1].CollectionElement;Argument[-1].CollectionElement;value" ,
39
41
";BidirectionalCollection;true;joined(separator:);;;Argument[-1..0];ReturnValue;taint" ,
40
42
";BidirectionalCollection;true;last(where:);;;Argument[-1];ReturnValue;taint" ,
41
43
";BidirectionalCollection;true;popLast();;;Argument[-1];ReturnValue;taint" ,
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ private class StringSummaries extends SummaryModelCsv {
114
114
";String;true;write(_:);;;Argument[0];Argument[-1];taint" ,
115
115
";String;true;write(to:);;;Argument[-1];Argument[0];taint" ,
116
116
";String;true;insert(contentsOf:at:);;;Argument[0];Argument[-1];taint" ,
117
- ";String;true;replaceSubrange(_:with:);;;Argument[1];Argument[-1];taint" ,
118
117
";String;true;max();;;Argument[-1];ReturnValue;taint" ,
119
118
";String;true;max(by:);;;Argument[-1];ReturnValue;taint" ,
120
119
";String;true;min();;;Argument[-1];ReturnValue;taint" ,
Original file line number Diff line number Diff line change @@ -675,5 +675,5 @@ func testSubstringMembers() {
675
675
var sub4 = clean. prefix ( 10 )
676
676
sink ( arg: sub4)
677
677
sub4. replaceSubrange ( ..< clean. endIndex, with: sub1)
678
- sink ( arg: sub4) // $ MISSING: tainted=
678
+ sink ( arg: sub4) // $ tainted=654
679
679
}
You can’t perform that action at this time.
0 commit comments