Skip to content

Commit 8e61c78

Browse files
committed
Swift: Fix RemoteFlowSource performance issue.
1 parent 33955ee commit 8e61c78

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private class JsExportedSource extends RemoteFlowSource {
125125
base.getEnclosingDecl() instanceof JsExportedProto and
126126
adopter.getEnclosingDecl() instanceof JsExportedType
127127
|
128-
this.asExpr().(MemberRefExpr).getMember() = adopter and adopter.getName() = base.getName()
128+
this.asExpr().(MemberRefExpr).getMember() = adopter and
129+
pragma[only_bind_out](adopter.getName()) = pragma[only_bind_out](base.getName())
129130
)
130131
}
131132

0 commit comments

Comments
 (0)