Skip to content

Commit f1408de

Browse files
committed
C++: InsufficientKeySize
1 parent 1f915b0 commit f1408de

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ module KeyStrengthFlowConfig implements DataFlow::ConfigSig {
4545
)
4646
}
4747

48-
predicate observeDiffInformedIncrementalMode() {
49-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 55 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-326/InsufficientKeySize.ql@62:8:62:9)
48+
predicate observeDiffInformedIncrementalMode() { any() }
49+
50+
Location getASelectedSinkLocation(DataFlow::Node sink) {
51+
exists(FunctionCall fc | result = fc.getLocation() | sink.asExpr() = fc.getArgument(_))
5052
}
5153
}
5254

0 commit comments

Comments
 (0)