File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
swift/ql/test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,6 @@ func taintThroughURL() {
260
260
if let x = URL ( string: clean) {
261
261
sink ( arg: x)
262
262
}
263
-
264
263
if let y = URL ( string: tainted) {
265
264
sink ( arg: y) // $ tainted=210
266
265
}
@@ -289,7 +288,8 @@ func taintThroughURL() {
289
288
ptrClean in
290
289
sink ( arg: URL ( fileURLWithFileSystemRepresentation: ptrClean, isDirectory: false , relativeTo: nil ) )
291
290
sink ( arg: URL ( fileURLWithFileSystemRepresentation: ptrClean, isDirectory: false , relativeTo: urlTainted) ) // $ MISSING: tainted=210
292
- } )
291
+ } ) ;
292
+ sink ( arg: URL ( fileURLWithFileSystemRepresentation: 0 as! UnsafePointer < Int8 > , isDirectory: false , relativeTo: urlTainted) ) // $ tainted=210
293
293
let _ = tainted. withCString ( {
294
294
ptrTainted in
295
295
sink ( arg: URL ( fileURLWithFileSystemRepresentation: ptrTainted, isDirectory: false , relativeTo: nil ) ) // $ MISSING: tainted=210
You can’t perform that action at this time.
0 commit comments