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() {
462462 let r2 = String ( unsafeUninitializedCapacity: 256 , initializingUTF8With: {
463463 ( buffer: UnsafeMutableBufferPointer < UInt8 > ) -> Int in
464464 sink ( arg: buffer [ 0 ] )
465- sink ( arg: taintedUInt8Values [ 0 ] ) // $ MISSING: tainted=450
465+ sink ( arg: taintedUInt8Values [ 0 ] ) // $ tainted=450
466466 let _ = buffer. initialize ( from: taintedUInt8Values)
467467 sink ( arg: buffer [ 0 ] ) // $ MISSING: tainted=450
468468 return 256
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ func taintThroughURL() {
287287 let _ = clean. withCString ( {
288288 ptrClean in
289289 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
291291 } ) ;
292292 sink ( arg: URL ( fileURLWithFileSystemRepresentation: 0 as! UnsafePointer < Int8 > , isDirectory: false , relativeTo: urlTainted) ) // $ tainted=210
293293 let _ = tainted. withCString ( {
You can’t perform that action at this time.
0 commit comments