File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
swift/ql/test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ func taintFromUInt8Array() {
462
462
let r2 = String ( unsafeUninitializedCapacity: 256 , initializingUTF8With: {
463
463
( buffer: UnsafeMutableBufferPointer < UInt8 > ) -> Int in
464
464
sink ( arg: buffer [ 0 ] )
465
- sink ( arg: taintedUInt8Values [ 0 ] ) // $ MISSING: tainted=450
465
+ sink ( arg: taintedUInt8Values [ 0 ] ) // $ tainted=450
466
466
let _ = buffer. initialize ( from: taintedUInt8Values)
467
467
sink ( arg: buffer [ 0 ] ) // $ MISSING: tainted=450
468
468
return 256
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ func taintThroughURL() {
287
287
let _ = clean. withCString ( {
288
288
ptrClean in
289
289
sink ( arg: URL ( fileURLWithFileSystemRepresentation: ptrClean, isDirectory: false , relativeTo: nil ) )
290
- sink ( arg: URL ( fileURLWithFileSystemRepresentation: ptrClean, isDirectory: false , relativeTo: urlTainted) ) // $ MISSING: tainted=210
290
+ sink ( arg: URL ( fileURLWithFileSystemRepresentation: ptrClean, isDirectory: false , relativeTo: urlTainted) ) // $ tainted=210
291
291
} ) ;
292
292
sink ( arg: URL ( fileURLWithFileSystemRepresentation: 0 as! UnsafePointer < Int8 > , isDirectory: false , relativeTo: urlTainted) ) // $ tainted=210
293
293
let _ = tainted. withCString ( {
You can’t perform that action at this time.
0 commit comments