Swift: Use numeric types in CleartextLogging.qll.

This commit is contained in:
Geoffrey White
2023-01-23 16:52:03 +00:00
parent 240248b9cf
commit 19527016a5

View File

@@ -53,7 +53,8 @@ private class OsLogPrivacyCleartextLoggingSanitizer extends CleartextLoggingSani
/** A type that isn't redacted by default in an `OSLogMessage`. */
private class OsLogNonRedactedType extends Type {
OsLogNonRedactedType() {
this.getName() = [["", "U"] + "Int" + ["", "8", "16", "32", "64"], "Double", "Float", "Bool"]
this instanceof NumericType or
this instanceof BoolType
}
}