Skip to content

Commit 2191403

Browse files
committed
[DIFF-INFORMED] C++: SSLResultConflation (has secondary config but passes test)
1 parent 87016f3 commit 2191403

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp/ql/src/Security/CWE/CWE-295/SSLResultConflation.ql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ module VerifyResultConfig implements DataFlow::ConfigSig {
3131
predicate isSink(DataFlow::Node sink) {
3232
exists(GuardCondition guard | guard.getAChild*() = sink.asExpr())
3333
}
34+
35+
predicate observeDiffInformedIncrementalMode() { any() }
36+
37+
Location getASelectedSinkLocation(DataFlow::Node sink) {
38+
exists(GuardCondition guard | result = guard.getLocation() |
39+
guard.comparesEq(sink.asExpr(), _, 0, false, _)
40+
)
41+
}
3442
}
3543

3644
module VerifyResult = DataFlow::Global<VerifyResultConfig>;

0 commit comments

Comments
 (0)