File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ 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
29
]
29
30
}
30
31
}
Original file line number Diff line number Diff line change @@ -433,12 +433,12 @@ func taintThroughEncodings() {
433
433
434
434
clean. withContiguousStorageIfAvailable ( {
435
435
ptr in
436
- sink ( arg: ptr)
436
+ sink ( arg: ptr) // $ SPURIOUS: tainted=366
437
437
sink ( arg: ptr. baseAddress!)
438
438
} )
439
439
tainted. withContiguousStorageIfAvailable ( {
440
440
ptr in
441
- sink ( arg: ptr)
441
+ sink ( arg: ptr) // $ tainted=366
442
442
sink ( arg: ptr. baseAddress!) // $ MISSING: tainted=366
443
443
} )
444
444
}
You can’t perform that action at this time.
0 commit comments