mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: exclude 0 earlier in InsufficientKeySize
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user