mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Swift: Use numeric types in CleartextLogging.qll.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user