File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
swift/ql/src/queries/Security/CWE-135 Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,8 @@ class StringLengthConflationConfiguration extends DataFlow::Configuration {
61
61
) and
62
62
c .getName ( ) = className and
63
63
c .getAMember ( ) = f and // TODO: will this even work if its defined in a parent class?
64
- call .getFunction ( ) .( ApplyExpr ) .getFunction ( ) .( DeclRefExpr ) .getDecl ( ) = f and
65
- call .getFunction ( )
66
- .( ApplyExpr )
67
- .getFunction ( )
68
- .( DeclRefExpr )
69
- .getDecl ( )
70
- .( AbstractFunctionDecl )
71
- .getName ( ) = methodName and
64
+ call .getFunction ( ) .( ApplyExpr ) .getStaticTarget ( ) = f and
65
+ f .( AbstractFunctionDecl ) .getName ( ) = methodName and
72
66
f .getParam ( arg ) .getName ( ) = paramName and
73
67
call .getArgument ( arg ) .getExpr ( ) = node .asExpr ( ) and
74
68
flowstate = "String" // `String` length flowing into `NSString`
You can’t perform that action at this time.
0 commit comments