File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ private class SequenceSummaries extends SummaryModelCsv {
50
50
";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1].CollectionElement;Argument[0].Parameter[0].CollectionElement;value" ,
51
51
";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[0].ReturnValue;ReturnValue.OptionalSome;value" ,
52
52
";Sequence;true;forEach(_:);;;Argument[-1].CollectionElement;Argument[0].Parameter[0];value" ,
53
+ ";Sequence;true;enumerated();;;Argument[-1].CollectionElement;ReturnValue.CollectionElement.TupleElement[1];value" ,
53
54
";Sequence;true;makeIterator();;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value" ,
54
55
";Sequence;true;min();;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;taint" ,
55
56
";Sequence;true;min(by:);;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;taint" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func testSet(ix: Int) {
34
34
}
35
35
for (ix, elem) in taintedSet. enumerated ( ) {
36
36
sink ( arg: ix)
37
- sink ( arg: elem) // $ MISSING: tainte =t1
37
+ sink ( arg: elem) // $ tainted =t1
38
38
}
39
39
taintedSet. forEach {
40
40
elem in
You can’t perform that action at this time.
0 commit comments