@@ -132,20 +132,18 @@ private class NsStringFieldsInheritTaint extends TaintInheritingContent,
132132 DataFlow:: Content:: FieldContent
133133{
134134 NsStringFieldsInheritTaint ( ) {
135- exists ( FieldDecl f | this .getField ( ) = f |
136- f .getEnclosingDecl ( ) .asNominalTypeDecl ( ) .getName ( ) = "NSString" and
137- f .getName ( ) =
138- [
139- "utf8String" , "lowercased" , "localizedLowedCase" , "uppercased" , "localizedUppercase" ,
140- "capitalized" , "localizedCapitalized" , "decomposedStringWithCanonicalMapping" ,
141- "decomposedStringWithCompatibilityMapping" , "precomposedStringWithCanonicalMapping" ,
142- "precomposedStringWithCompatibilityMapping" , "doubleValue" , "floatValue" , "intValue" ,
143- "integerValue" , "longLongValue" , "boolValue" , "description" , "pathComponents" ,
144- "fileSystemRepresentation" , "lastPathComponent" , "pathExtension" ,
145- "abbreviatingWithTildeInPath" , "deletingLastPathComponent" , "deletingPathExtension" ,
146- "expandingTildeInPath" , "resolvingSymlinksInPath" , "standardizingPath" ,
147- "removingPercentEncoding"
148- ]
149- )
135+ this .getField ( )
136+ .hasQualifiedName ( "NSString" ,
137+ [
138+ "utf8String" , "lowercased" , "localizedLowedCase" , "uppercased" , "localizedUppercase" ,
139+ "capitalized" , "localizedCapitalized" , "decomposedStringWithCanonicalMapping" ,
140+ "decomposedStringWithCompatibilityMapping" , "precomposedStringWithCanonicalMapping" ,
141+ "precomposedStringWithCompatibilityMapping" , "doubleValue" , "floatValue" , "intValue" ,
142+ "integerValue" , "longLongValue" , "boolValue" , "description" , "pathComponents" ,
143+ "fileSystemRepresentation" , "lastPathComponent" , "pathExtension" ,
144+ "abbreviatingWithTildeInPath" , "deletingLastPathComponent" , "deletingPathExtension" ,
145+ "expandingTildeInPath" , "resolvingSymlinksInPath" , "standardizingPath" ,
146+ "removingPercentEncoding"
147+ ] )
150148 }
151149}
0 commit comments