File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ private class ArraySummaries extends SummaryModelCsv {
26
26
";Array;true;withUnsafeMutableBufferPointer(_:);;;Argument[-1];Argument[0].Parameter[0];taint" ,
27
27
";Array;true;withUnsafeMutableBufferPointer(_:);;;Argument[0].Parameter[0];Argument[-1];taint" ,
28
28
";Array;true;withUnsafeMutableBufferPointer(_:);;;Argument[0].ReturnValue;ReturnValue;value" ,
29
+ ";Array;true;withUnsafeBytes(_:);;;Argument[-1];Argument[0].Parameter[0];taint" ,
30
+ ";Array;true;withUnsafeBytes(_:);;;Argument[-1].ArrayElement;Argument[0].Parameter[0];taint" ,
31
+ ";Array;true;withUnsafeBytes(_:);;;Argument[0].ReturnValue;ReturnValue;value" ,
29
32
";Array;true;withUnsafeMutableBytes(_:);;;Argument[-1];Argument[0].Parameter[0];taint" ,
30
33
";Array;true;withUnsafeMutableBytes(_:);;;Argument[0].Parameter[0];Argument[-1];taint" ,
31
34
";Array;true;withUnsafeMutableBytes(_:);;;Argument[0].ReturnValue;ReturnValue;value" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ func taintThroughClosurePointer() {
19
19
sink ( arg: ptr1 [ 0 ] ) // $ MISSING: tainted=13
20
20
return source ( )
21
21
} )
22
- sink ( arg: return1) // $ MISSING: tainted=20
22
+ sink ( arg: return1) // $ tainted=20
23
23
24
24
// ---
25
25
@@ -110,7 +110,7 @@ func taintThroughMutablePointer() {
110
110
sink ( arg: ptr4 [ 0 ] ) // $ MISSING: tainted=97
111
111
return source ( )
112
112
} )
113
- sink ( arg: return5) // $ MISSING: tainted=111
113
+ sink ( arg: return5) // $ tainted=111
114
114
return source ( )
115
115
} )
116
116
sink ( arg: return4) // $ tainted=114
You can’t perform that action at this time.
0 commit comments