mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
19 lines
678 B
Plaintext
19 lines
678 B
Plaintext
import java
|
|
import TestUtilities.InlineExpectationsTest
|
|
import semmle.code.java.security.InsufficientKeySizeQuery
|
|
|
|
class InsufficientKeySizeTest extends InlineExpectationsTest {
|
|
InsufficientKeySizeTest() { this = "InsufficientKeySize" }
|
|
|
|
override string getARelevantTag() { result = "hasInsufficientKeySize" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasInsufficientKeySize" and
|
|
exists(DataFlow::PathNode sink | exists(KeySizeConfiguration cfg | cfg.hasFlowPath(_, sink)) |
|
|
sink.getNode().getLocation() = location and
|
|
element = sink.getNode().toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|