Skip to content

Commit 60532e6

Browse files
committed
C++: fix missing paren
1 parent 9fb94d8 commit 60532e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cpp/ql/src/Security/CWE/CWE-326/InsufficientKeySize.ql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ class KeyStrengthFlow extends DataFlow::Configuration {
3232

3333
override predicate isSource(DataFlow::Node node) {
3434
exists(int bits |
35-
node.asInstruction().(IntegerConstantInstruction).getValue().toInt() = bits and
36-
bits < getMinimumKeyStrength(_, _) and
37-
bits > 0 // exclude sentinel values
35+
node.asInstruction().(IntegerConstantInstruction).getValue().toInt() = bits and
36+
bits < getMinimumKeyStrength(_, _) and
37+
bits > 0 // exclude sentinel values
38+
)
3839
}
3940

4041
override predicate isSink(DataFlow::Node node) {

0 commit comments

Comments
 (0)