File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
swift/ql/test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,29 +43,29 @@ class UIScene {
43
43
44
44
// --- tests ---
45
45
46
- func source( ) -> Any { return " " }
46
+ func source( _ label : String ) -> Any { return " " }
47
47
func sink( _: Any ) { }
48
48
49
49
func testUIOpenURLContext( ) {
50
50
let safe = UIOpenURLContext ( )
51
- let tainted = source ( ) as! UIOpenURLContext
51
+ let tainted = source ( " OpenURLContext " ) as! UIOpenURLContext
52
52
53
53
sink ( safe. url)
54
54
sink ( safe. options)
55
- sink ( tainted. url) // $ tainted=51
55
+ sink ( tainted. url) // $ tainted=OpenURLContext
56
56
sink ( tainted. options)
57
57
}
58
58
59
59
func testConnectionOptions( ) {
60
60
let safe = UIScene . ConnectionOptions ( )
61
- let tainted = source ( ) as! UIScene . ConnectionOptions
61
+ let tainted = source ( " ConnectionOptions " ) as! UIScene . ConnectionOptions
62
62
63
63
sink ( safe. userActivities)
64
- sink ( tainted. userActivities) // $ tainted=61
64
+ sink ( tainted. userActivities) // $ tainted=ConnectionOptions
65
65
sink ( safe. shortcutItem)
66
66
sink ( tainted. shortcutItem)
67
67
sink ( safe. urlContexts)
68
- sink ( tainted. urlContexts) // $ tainted=61
68
+ sink ( tainted. urlContexts) // $ tainted=ConnectionOptions
69
69
sink ( safe. handoffUserActivityType)
70
70
sink ( tainted. handoffUserActivityType)
71
71
sink ( safe. cloudKitShareMetadata)
You can’t perform that action at this time.
0 commit comments