File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
lib/codeql/swift/frameworks/StandardLibrary
test/library-tests/dataflow/flowsources Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ private class JsExportedSource extends RemoteFlowSource {
125
125
base .getEnclosingDecl ( ) instanceof JsExportedProto and
126
126
adopter .getEnclosingDecl ( ) instanceof JsExportedType
127
127
|
128
- this .asDefinition ( ) .getSourceVariable ( ) = adopter and adopter .getName ( ) = base .getName ( )
128
+ this .asExpr ( ) .( MemberRefExpr ) . getMember ( ) = adopter and adopter .getName ( ) = base .getName ( )
129
129
)
130
130
}
131
131
Original file line number Diff line number Diff line change 11
11
| webview.swift:20:82:20:102 | message | external |
12
12
| webview.swift:25:5:25:13 | .globalObject | external |
13
13
| webview.swift:26:5:26:39 | call to objectForKeyedSubscript(_:) | external |
14
- | webview.swift:38:10:38:10 | self | Member of a type exposed through JSExport |
15
- | webview.swift:38:18:38:24 | arg1 | Member of a type exposed through JSExport |
16
- | webview.swift:38:29:38:35 | arg2 | Member of a type exposed through JSExport |
14
+ | webview.swift:39:9:39:9 | .tainted | Member of a type exposed through JSExport |
15
+ | webview.swift:43:10:43:10 | self | Member of a type exposed through JSExport |
16
+ | webview.swift:43:18:43:24 | arg1 | Member of a type exposed through JSExport |
17
+ | webview.swift:43:29:43:35 | arg2 | Member of a type exposed through JSExport |
Original file line number Diff line number Diff line change @@ -31,10 +31,15 @@ protocol Exported : JSExport {
31
31
func tainted( arg1: Any , arg2: Any )
32
32
}
33
33
class ExportedImpl : Exported {
34
- var tainted : Any { get { return " " } } // SOURCE
34
+ var tainted : Any { get { return " " } }
35
35
36
36
var notTainted : Any { get { return " " } }
37
37
38
+ func readFields( ) {
39
+ tainted // SOURCE
40
+ notTainted
41
+ }
42
+
38
43
func tainted( arg1: Any , arg2: Any ) { // SOURCES
39
44
}
40
45
You can’t perform that action at this time.
0 commit comments