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 @@ -49,6 +49,7 @@ private class SequenceSummaries extends SummaryModelCsv {
49
49
";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1];Argument[0].Parameter[0].CollectionElement;taint" ,
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
+ ";Sequence;true;forEach(_:);;;Argument[-1].CollectionElement;Argument[0].Parameter[0];value" ,
52
53
";Sequence;true;makeIterator();;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value" ,
53
54
";Sequence;true;min();;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;taint" ,
54
55
";Sequence;true;min(by:);;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;taint" ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ func testSet(ix: Int) {
38
38
}
39
39
taintedSet. forEach {
40
40
elem in
41
- sink ( arg: elem) // $ MISSING: tainted=
41
+ sink ( arg: elem) // $ tainted=t1
42
42
}
43
43
44
44
var set1 = Set < Int > ( )
You can’t perform that action at this time.
0 commit comments