Skip to content

Commit c2a2d6b

Browse files
committed
Fix LaunchOptionsUrlVarDecl
Update test expectations
1 parent e2c9240 commit c2a2d6b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/CustomUrlSchemes.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private class ApllicationWithLaunchOptionsFunc extends FuncDecl {
4848

4949
private class LaunchOptionsUrlVarDecl extends VarDecl {
5050
LaunchOptionsUrlVarDecl() {
51-
this.getEnclosingDecl().(StructDecl).getName() = "UIApplication.LaunchOptionsKey" and
51+
this.getEnclosingDecl().(StructDecl).getFullName() = "UIApplication.LaunchOptionsKey" and
5252
this.getName() = "url"
5353
}
5454
}

swift/ql/test/library-tests/dataflow/flowsources/FlowSources.expected

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
| customurlschemes.swift:17:44:17:54 | url | external |
2-
| customurlschemes.swift:20:52:20:68 | url | external |
3-
| customurlschemes.swift:23:52:23:62 | url | external |
1+
| customurlschemes.swift:23:44:23:54 | url | external |
2+
| customurlschemes.swift:27:52:27:68 | url | external |
3+
| customurlschemes.swift:31:52:31:62 | url | external |
4+
| customurlschemes.swift:36:9:36:28 | ...[...] | Remote URL in UIApplicationDelegate.application.launchOptions |
5+
| customurlschemes.swift:41:9:41:28 | ...[...] | Remote URL in UIApplicationDelegate.application.launchOptions |
46
| string.swift:27:21:27:21 | call to init(contentsOf:) | external |
57
| string.swift:27:21:27:44 | call to init(contentsOf:) | external |
68
| url.swift:53:15:53:19 | .resourceBytes | external |

0 commit comments

Comments
 (0)