Skip to content

Commit 0e67100

Browse files
committed
Swift: fix bad join order in WebView/JsExportedSource
The `getName = getName` join was happening too early, before the methods themselves have been enumerated.
1 parent 8502939 commit 0e67100

File tree

1 file changed

+1
-1
lines changed
  • swift/ql/lib/codeql/swift/frameworks/StandardLibrary

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private class JsExportedSource extends RemoteFlowSource {
118118
adopter.getEnclosingDecl() instanceof JsExportedType
119119
|
120120
this.(DataFlow::ParameterNode).getParameter().getDeclaringFunction() = adopter and
121-
adopter.getName() = base.getName()
121+
pragma[only_bind_out](adopter.getName()) = pragma[only_bind_out](base.getName())
122122
)
123123
or
124124
exists(FieldDecl adopter, FieldDecl base |

0 commit comments

Comments
 (0)