Skip to content

Commit 84f648f

Browse files
committed
C#: ConditinalBypass
1 parent 42c06fc commit 84f648f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

csharp/ql/lib/semmle/code/csharp/security/dataflow/ConditionalBypassQuery.qll

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ private module ConditionalBypassConfig implements DataFlow::ConfigSig {
4040

4141
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
4242

43-
predicate observeDiffInformedIncrementalMode() {
44-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 5 selects sink.getSensitiveMethodCall (/Users/d10c/src/semmle-code/ql/csharp/ql/src/Security Features/CWE-807/ConditionalBypass.ql@23:3:23:48)
43+
predicate observeDiffInformedIncrementalMode() { any() }
44+
45+
Location getASelectedSinkLocation(DataFlow::Node sink) {
46+
result = sink.getLocation()
47+
or
48+
// from ConditionalBypass.ql
49+
result = sink.(Sink).getSensitiveMethodCall().getLocation()
4550
}
4651
}
4752

0 commit comments

Comments
 (0)