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 {
25
25
";Sequence;true;joined();;;Argument[-1];ReturnValue;taint" ,
26
26
";Sequence;true;joined(separator:);;;Argument[-1..0];ReturnValue;taint" ,
27
27
";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" ,
29
30
]
30
31
}
31
32
}
Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ func furtherTaintThroughCallbacks() {
626
626
ptr in
627
627
return source ( )
628
628
} )
629
- sink ( arg: result2!) // $ MISSING: tainted=627
629
+ sink ( arg: result2!) // $ tainted=627
630
630
631
631
// return values from the closure (2)
632
632
if let result3 = clean. withContiguousStorageIfAvailable ( {
@@ -646,5 +646,5 @@ func furtherTaintThroughCallbacks() {
646
646
let result5 = try ? clean. withContiguousStorageIfAvailable ( callbackWithCleanPointer)
647
647
sink ( arg: result5!)
648
648
let result6 = try ? tainted. withContiguousStorageIfAvailable ( callbackWithTaintedPointer)
649
- sink ( arg: result6!) // $ MISSING: tainted=612
649
+ sink ( arg: result6!) // $ tainted=612
650
650
}
You can’t perform that action at this time.
0 commit comments