File tree Expand file tree Collapse file tree
swift/ql/src/queries/Security/CWE-311 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class RealmStore extends Stored {
4747 exists ( ClassDecl c , AbstractFunctionDecl f , CallExpr call |
4848 c .getName ( ) = "Realm" and
4949 c .getAMember ( ) = f and
50- f .getName ( ) = [ "add(_:update:)" ] and
50+ f .getName ( ) = "add(_:update:)" and
5151 call .getFunction ( ) .( ApplyExpr ) .getStaticTarget ( ) = f and
5252 call .getArgument ( 0 ) .getExpr ( ) = this
5353 )
@@ -56,7 +56,7 @@ class RealmStore extends Stored {
5656 exists ( ClassDecl c , AbstractFunctionDecl f , CallExpr call |
5757 c .getName ( ) = "Realm" and
5858 c .getAMember ( ) = f and
59- f .getName ( ) = [ "create(_:value:update:)" ] and
59+ f .getName ( ) = "create(_:value:update:)" and
6060 call .getFunction ( ) .( ApplyExpr ) .getStaticTarget ( ) = f and
6161 call .getArgument ( 1 ) .getExpr ( ) = this
6262 )
You can’t perform that action at this time.
0 commit comments