Skip to content

Commit e08eac0

Browse files
committed
Swift: Fix for Int.description.
1 parent 23ed48e commit e08eac0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/String.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private class StringFieldsInheritTaint extends TaintInheritingContent,
167167
"precomposedStringWithCompatibilityMapping", "removingPercentEncoding"
168168
]
169169
or
170-
namedTypeDecl.getFullName() = "CustomStringConvertible" and
170+
namedTypeDecl.getFullName() = ["CustomStringConvertible", "BinaryInteger"] and
171171
fieldDecl.getName() = "description"
172172
or
173173
namedTypeDecl.getFullName() = "CustomDebugStringConvertible" and
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
testFailures
22
| optionset.swift:60:49:61:1 | // $ tainted=60\n | Missing result: tainted=60 |
33
| optionset.swift:65:58:66:1 | // $ tainted=65\n | Missing result: tainted=65 |
4-
| string.swift:599:35:600:1 | // $ tainted=599\n | Missing result: tainted=599 |
54
failures

0 commit comments

Comments
 (0)