Skip to content

Commit bfacbea

Browse files
committed
Java: MaybeBrokenCryptoAlgorithm
1 parent 23ff34f commit bfacbea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ module InsecureCryptoConfig implements DataFlow::ConfigSig {
7878
n.getType().getErasure() instanceof TypeObject
7979
}
8080

81-
predicate observeDiffInformedIncrementalMode() {
82-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/java/ql/src/Security/CWE/CWE-327/MaybeBrokenCryptoAlgorithm.ql@25:8:25:8)
81+
predicate observeDiffInformedIncrementalMode() { any() }
82+
83+
Location getASelectedSinkLocation(DataFlow::Node sink) {
84+
exists(CryptoAlgoSpec c | result = c.getLocation() | sink.asExpr() = c.getAlgoSpec())
8385
}
8486
}
8587

0 commit comments

Comments
 (0)