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,
150150 or
151151 exists ( FieldDecl fieldDecl , Decl declaringDecl , TypeDecl namedTypeDecl |
152152 (
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"
160158 ) and
161159 declaringDecl .getAMember ( ) = fieldDecl and
162160 declaringDecl .asNominalTypeDecl ( ) = namedTypeDecl .getADerivedTypeDecl * ( ) and
You can’t perform that action at this time.
0 commit comments