File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ private class SequenceSummaries extends SummaryModelCsv {
2525 ";Sequence;true;joined();;;Argument[-1];ReturnValue;taint" ,
2626 ";Sequence;true;joined(separator:);;;Argument[-1..0];ReturnValue;taint" ,
2727 ";Sequence;true;first(where:);;;Argument[-1];ReturnValue;taint" ,
28- ";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1];Argument[0].Parameter[0];taint"
28+ ";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[-1];Argument[0].Parameter[0];taint" ,
29+ ";Sequence;true;withContiguousStorageIfAvailable(_:);;;Argument[0].ReturnValue;ReturnValue;taint" ,
2930 ]
3031 }
3132}
Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ func furtherTaintThroughCallbacks() {
626626 ptr in
627627 return source ( )
628628 } )
629- sink ( arg: result2!) // $ MISSING: tainted=627
629+ sink ( arg: result2!) // $ tainted=627
630630
631631 // return values from the closure (2)
632632 if let result3 = clean. withContiguousStorageIfAvailable ( {
@@ -646,5 +646,5 @@ func furtherTaintThroughCallbacks() {
646646 let result5 = try ? clean. withContiguousStorageIfAvailable ( callbackWithCleanPointer)
647647 sink ( arg: result5!)
648648 let result6 = try ? tainted. withContiguousStorageIfAvailable ( callbackWithTaintedPointer)
649- sink ( arg: result6!) // $ MISSING: tainted=612
649+ sink ( arg: result6!) // $ tainted=612
650650}
You can’t perform that action at this time.
0 commit comments