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 {
4949 ";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1];Argument[0].Parameter[0].CollectionElement;taint" ,
5050 ";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1].CollectionElement;Argument[0].Parameter[0].CollectionElement;value" ,
5151 ";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[0].ReturnValue;ReturnValue.OptionalSome;value" ,
52+ ";Sequence;true;forEach(_:);;;Argument[-1].CollectionElement;Argument[0].Parameter[0];value" ,
5253 ";Sequence;true;makeIterator();;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value" ,
5354 ";Sequence;true;min();;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;taint" ,
5455 ";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) {
3838 }
3939 taintedSet. forEach {
4040 elem in
41- sink ( arg: elem) // $ MISSING: tainted=
41+ sink ( arg: elem) // $ tainted=t1
4242 }
4343
4444 var set1 = Set < Int > ( )
You can’t perform that action at this time.
0 commit comments