File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
swift/ql/src/queries/Security/CWE-311 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class RealmStore extends Stored {
47
47
exists ( ClassDecl c , AbstractFunctionDecl f , CallExpr call |
48
48
c .getName ( ) = "Realm" and
49
49
c .getAMember ( ) = f and
50
- f .getName ( ) = [ "add(_:update:)" ] and
50
+ f .getName ( ) = "add(_:update:)" and
51
51
call .getFunction ( ) .( ApplyExpr ) .getStaticTarget ( ) = f and
52
52
call .getArgument ( 0 ) .getExpr ( ) = this
53
53
)
@@ -56,7 +56,7 @@ class RealmStore extends Stored {
56
56
exists ( ClassDecl c , AbstractFunctionDecl f , CallExpr call |
57
57
c .getName ( ) = "Realm" and
58
58
c .getAMember ( ) = f and
59
- f .getName ( ) = [ "create(_:value:update:)" ] and
59
+ f .getName ( ) = "create(_:value:update:)" and
60
60
call .getFunction ( ) .( ApplyExpr ) .getStaticTarget ( ) = f and
61
61
call .getArgument ( 1 ) .getExpr ( ) = this
62
62
)
You can’t perform that action at this time.
0 commit comments