File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
swift/ql/lib/codeql/swift/frameworks/StandardLibrary Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -150,13 +150,11 @@ private class StringFieldsInheritTaint extends TaintInheritingContent,
150
150
or
151
151
exists ( FieldDecl fieldDecl , Decl declaringDecl , TypeDecl namedTypeDecl |
152
152
(
153
- (
154
- namedTypeDecl .getFullName ( ) = "CustomStringConvertible" and
155
- fieldDecl .getName ( ) = "description"
156
- ) or (
157
- namedTypeDecl .getFullName ( ) = "CustomDebugStringConvertible" and
158
- fieldDecl .getName ( ) = "debugDescription"
159
- )
153
+ namedTypeDecl .getFullName ( ) = "CustomStringConvertible" and
154
+ fieldDecl .getName ( ) = "description"
155
+ or
156
+ namedTypeDecl .getFullName ( ) = "CustomDebugStringConvertible" and
157
+ fieldDecl .getName ( ) = "debugDescription"
160
158
) and
161
159
declaringDecl .getAMember ( ) = fieldDecl and
162
160
declaringDecl .asNominalTypeDecl ( ) = namedTypeDecl .getADerivedTypeDecl * ( ) and
You can’t perform that action at this time.
0 commit comments