C++: exclude 0 earlier in InsufficientKeySize

This commit is contained in:
Robert Marsh
2022-02-24 14:26:37 -05:00
parent a37f746dff
commit a60fe9f4b8

View File

@@ -31,7 +31,7 @@ class KeyStrengthFlow extends DataFlow::Configuration {
KeyStrengthFlow() { this = "KeyStrengthFlow" }
override predicate isSource(DataFlow::Node node) {
node.asInstruction() instanceof IntegerConstantInstruction
node.asInstruction().(IntegerConstantInstruction).getValue() != "0"
}
override predicate isSink(DataFlow::Node node) {