We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37f746 commit a60fe9fCopy full SHA for a60fe9f
cpp/ql/src/Security/CWE/CWE-326/InsufficientKeySize.ql
@@ -31,7 +31,7 @@ class KeyStrengthFlow extends DataFlow::Configuration {
31
KeyStrengthFlow() { this = "KeyStrengthFlow" }
32
33
override predicate isSource(DataFlow::Node node) {
34
- node.asInstruction() instanceof IntegerConstantInstruction
+ node.asInstruction().(IntegerConstantInstruction).getValue() != "0"
35
}
36
37
override predicate isSink(DataFlow::Node node) {
0 commit comments