Skip to content

Commit a6046f3

Browse files
committed
C++: SSLResultConflation
1 parent c744d1e commit a6046f3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ module VerifyResultConfig implements DataFlow::ConfigSig {
3232
exists(GuardCondition guard | guard.getAChild*() = sink.asExpr())
3333
}
3434

35-
predicate observeDiffInformedIncrementalMode() {
36-
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 42 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-295/SSLResultConflation.ql@48:8:48:12), Column 1 does not select a source or sink originating from the flow call on line 43 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-295/SSLResultConflation.ql@48:8:48:12)
37-
}
35+
predicate observeDiffInformedIncrementalMode() { any() }
3836

3937
Location getASelectedSinkLocation(DataFlow::Node sink) {
40-
none() // TODO: Make sure that this sink location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 42 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-295/SSLResultConflation.ql@48:8:48:12), Column 1 does not select a source or sink originating from the flow call on line 43 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-295/SSLResultConflation.ql@48:8:48:12)
38+
exists(GuardCondition guard | result = guard.getLocation() |
39+
guard.comparesEq(sink.asExpr(), _, 0, false, _)
40+
)
4141
}
4242
}
4343

0 commit comments

Comments
 (0)