mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
add ECC dataflow config; passes all test cases; still don't have algo name tracking
This commit is contained in:
@@ -9,9 +9,13 @@ class InsufficientKeySizeTest extends InlineExpectationsTest {
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "hasInsufficientKeySize" and
|
||||
exists(Expr e, string msg | hasInsufficientKeySize(e, msg) |
|
||||
e.getLocation() = location and
|
||||
element = e.toString() and
|
||||
exists(DataFlow::PathNode source, DataFlow::PathNode sink |
|
||||
exists(AsymmetricKeyTrackingConfiguration config1 | config1.hasFlowPath(source, sink)) or
|
||||
exists(AsymmetricECCKeyTrackingConfiguration config2 | config2.hasFlowPath(source, sink)) or
|
||||
exists(SymmetricKeyTrackingConfiguration config2 | config2.hasFlowPath(source, sink))
|
||||
|
|
||||
sink.getNode().getLocation() = location and
|
||||
element = sink.getNode().toString() and
|
||||
value = ""
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user