Skip to content

Commit 1952701

Browse files
committed
Swift: Use numeric types in CleartextLogging.qll.
1 parent 240248b commit 1952701

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)