File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ private class DataSummaries extends SummaryModelCsv {
26
26
";Data;true;base64EncodedData(options:);;;Argument[-1];ReturnValue;taint" ,
27
27
";Data;true;base64EncodedString(options:);;;Argument[-1];ReturnValue;taint" ,
28
28
";Data;true;compactMap(_:);;;Argument[-1];ReturnValue;taint" ,
29
- ";Data ;true;copyBytes(to:);;;Argument[-1];Argument[0];taint" ,
30
- ";Data ;true;copyBytes(to:count:);;;Argument[-1];Argument[0];taint" ,
31
- ";Data ;true;copyBytes(to:from:);;;Argument[-1];Argument[0];taint" ,
29
+ ";DataProtocol ;true;copyBytes(to:);;;Argument[-1];Argument[0];taint" ,
30
+ ";DataProtocol ;true;copyBytes(to:count:);;;Argument[-1];Argument[0];taint" ,
31
+ ";DataProtocol ;true;copyBytes(to:from:);;;Argument[-1];Argument[0];taint" ,
32
32
";Data;true;flatMap(_:);;;Argument[-1];ReturnValue;taint" ,
33
33
";Data;true;insert(contentsOf:at:);;;Argument[0];Argument[-1];taint" ,
34
34
";Data;true;map(_:);;;Argument[-1];ReturnValue;taint" ,
Original file line number Diff line number Diff line change @@ -277,10 +277,10 @@ func taintThroughData() {
277
277
let dataTainted43 = source ( ) as! UnsafeRawBufferPointer
278
278
let pointerTainted43 = UnsafeMutableRawBufferPointer . allocate ( byteCount: 0 , alignment: 0 )
279
279
dataTainted43. copyBytes ( to: pointerTainted43)
280
- sink ( arg: pointerTainted43) // $ MISSING: tainted=277
280
+ sink ( arg: pointerTainted43) // $ tainted=277
281
281
282
282
let dataTainted44 = source ( ) as! Array < UInt8 >
283
283
let pointerTainted44 = UnsafeMutableRawBufferPointer . allocate ( byteCount: 0 , alignment: 0 )
284
284
dataTainted44. copyBytes ( to: pointerTainted44)
285
- sink ( arg: pointerTainted44) // $ MISSING: tainted=282
285
+ sink ( arg: pointerTainted44) // $ tainted=282
286
286
}
You can’t perform that action at this time.
0 commit comments