Skip to content

Commit 0b04e4a

Browse files
committed
Swift: Address QL-for-QL alerts.
1 parent 034daa9 commit 0b04e4a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ class WeakPasswordHashingAdditionalFlowStep extends Unit {
4242
* for the weak sensitive data hashing query is a sink for weak password
4343
* hashing as well.
4444
*/
45-
private class InheritedWeakPasswordHashingSink extends WeakPasswordHashingSink {
46-
InheritedWeakPasswordHashingSink() { this instanceof WeakSensitiveDataHashingSink }
47-
45+
private class InheritedWeakPasswordHashingSink extends WeakPasswordHashingSink instanceof WeakSensitiveDataHashingSink
46+
{
4847
override string getAlgorithm() { result = this.(WeakSensitiveDataHashingSink).getAlgorithm() }
4948
}
5049

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import swift
77
import codeql.swift.security.SensitiveExprs
8-
import codeql.swift.dataflow.DataFlow
98
import codeql.swift.dataflow.TaintTracking
109
import codeql.swift.security.WeakPasswordHashingExtensions
1110

swift/ql/src/queries/Security/CWE-328/WeakPasswordHashing.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<strong>Brute force</strong>. If you know a hash value <code>h(x)</code>,
2727
you should not be able to find an input <code>y</code> that computes to that hash value
2828
using brute force attacks without significant computational effort.
29-
<li>
29+
</li>
3030
</ul>
3131

3232
<p>

0 commit comments

Comments
 (0)