Skip to content

Commit d569f93

Browse files
Jami CogswellJami Cogswell
authored andcommitted
update getAlgoSpec
1 parent 09829d7 commit d569f93

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

java/ql/lib/semmle/code/java/security/InsufficientKeySize.qll

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,18 @@ private class AsymmetricKeyGenerator extends AlgoGeneratorObject {
157157
this instanceof JavaSecurityAlgoParamGenerator
158158
}
159159

160-
override Expr getAlgoSpec() { result = this.getAlgoSpec() }
160+
override Expr getAlgoSpec() {
161+
result =
162+
[
163+
this.(JavaSecurityKeyPairGenerator).getAlgoSpec(),
164+
this.(JavaSecurityAlgoParamGenerator).getAlgoSpec()
165+
]
166+
}
161167
}
162168

163169
/** An instance of a `javax.crypto.KeyGenerator`. */
164170
private class SymmetricKeyGenerator extends AlgoGeneratorObject instanceof JavaxCryptoKeyGenerator {
165-
override Expr getAlgoSpec() { result = this.getAlgoSpec() }
171+
override Expr getAlgoSpec() { result = JavaxCryptoKeyGenerator.super.getAlgoSpec() }
166172
}
167173

168174
/** An instance of an algorithm specification. */

0 commit comments

Comments
 (0)