File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
swift/ql/test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ func taintThroughClosurePointer() {
1515 sink ( arg: myArray1 [ 0 ] ) // $ tainted=13
1616 let return1 = myArray1. withUnsafeBytes ( {
1717 ptr1 in
18- sink ( arg: ptr1)
19- sink ( arg: ptr1 [ 0 ] ) // $ MISSING: tainted=13
18+ sink ( arg: ptr1) // $ SPURIOUS: tainted=13
19+ sink ( arg: ptr1 [ 0 ] ) // $ tainted=13
2020 return source ( )
2121 } )
2222 sink ( arg: return1) // $ tainted=20
@@ -30,8 +30,8 @@ func taintThroughClosurePointer() {
3030 sink ( arg: myArray2 [ 0 ] ) // $ tainted=28
3131 let return2 = myArray2. withUnsafeBufferPointer ( {
3232 ptr2 in
33- sink ( arg: ptr2)
34- sink ( arg: ptr2 [ 0 ] ) // $ MISSING: tainted=28
33+ sink ( arg: ptr2) // $ SPURIOUS: tainted=28
34+ sink ( arg: ptr2 [ 0 ] ) // $ tainted=28
3535 return source ( )
3636 } )
3737 sink ( arg: return2) // $ tainted=35
You can’t perform that action at this time.
0 commit comments