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 {
125125 base .getEnclosingDecl ( ) instanceof JsExportedProto and
126126 adopter .getEnclosingDecl ( ) instanceof JsExportedType
127127 |
128- this .asDefinition ( ) .getSourceVariable ( ) = adopter and adopter .getName ( ) = base .getName ( )
128+ this .asExpr ( ) .( MemberRefExpr ) . getMember ( ) = adopter and adopter .getName ( ) = base .getName ( )
129129 )
130130 }
131131
Original file line number Diff line number Diff line change 1111| webview.swift:20:82:20:102 | message | external |
1212| webview.swift:25:5:25:13 | .globalObject | external |
1313| 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 {
3131 func tainted( arg1: Any , arg2: Any )
3232}
3333class ExportedImpl : Exported {
34- var tainted : Any { get { return " " } } // SOURCE
34+ var tainted : Any { get { return " " } }
3535
3636 var notTainted : Any { get { return " " } }
3737
38+ func readFields( ) {
39+ tainted // SOURCE
40+ notTainted
41+ }
42+
3843 func tainted( arg1: Any , arg2: Any ) { // SOURCES
3944 }
4045
You can’t perform that action at this time.
0 commit comments