Skip to content

Commit 25bcaa3

Browse files
authored
Merge pull request github#11966 from geoffw0/usenumerics
Swift: Use numeric types in CleartextLogging.qll.
2 parents e32823c + 1952701 commit 25bcaa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift/ql/lib/codeql/swift/security/CleartextLogging.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ private class OsLogPrivacyCleartextLoggingSanitizer extends CleartextLoggingSani
5353
/** A type that isn't redacted by default in an `OSLogMessage`. */
5454
private class OsLogNonRedactedType extends Type {
5555
OsLogNonRedactedType() {
56-
this.getName() = [["", "U"] + "Int" + ["", "8", "16", "32", "64"], "Double", "Float", "Bool"]
56+
this instanceof NumericType or
57+
this instanceof BoolType
5758
}
5859
}
5960

0 commit comments

Comments
 (0)