Swift: Fix finding base classes.

This commit is contained in:
Geoffrey White
2022-09-01 09:01:56 +01:00
parent 92a927efa7
commit d3250a7e16

View File

@@ -89,8 +89,7 @@ class CleartextStorageConfig extends TaintTracking::Configuration {
isSink(node) and
exists(ClassDecl cd |
c.getAReadContent().(DataFlow::Content::FieldContent).getField() = cd.getAMember() and
cd.getName() = ["RealmSwiftObject", "MyRealmSwiftObject"]
// TODO: should be cd.getParent*().getName() = "RealmSwiftObject"
cd.getType().(NominalType).getABaseType*().getName() = "RealmSwiftObject"
)
or
// any default implicit reads