Skip to content

Commit 6c87c3f

Browse files
committed
Go: ConditionalBypass
1 parent 67f5a32 commit 6c87c3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go/ql/src/experimental/CWE-840/ConditionalBypass.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ module Config implements DataFlow::ConfigSig {
2323
exists(ComparisonExpr c | c.getAnOperand() = sink.asExpr())
2424
}
2525

26-
predicate observeDiffInformedIncrementalMode() {
27-
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 34 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@38:8:38:8), Column 1 does not select a source or sink originating from the flow call on line 36 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@38:8:38:8), Column 3 does not select a source or sink originating from the flow call on line 34 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@38:91:38:99), Column 5 does not select a source or sink originating from the flow call on line 36 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@39:28:39:36)
28-
}
26+
predicate observeDiffInformedIncrementalMode() { any() }
2927

3028
Location getASelectedSinkLocation(DataFlow::Node sink) {
31-
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 34 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@38:8:38:8), Column 1 does not select a source or sink originating from the flow call on line 36 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@38:8:38:8), Column 3 does not select a source or sink originating from the flow call on line 34 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@38:91:38:99), Column 5 does not select a source or sink originating from the flow call on line 36 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-840/ConditionalBypass.ql@39:28:39:36)
29+
exists(ComparisonExpr c | result = c.getLocation() |
30+
sink.asExpr() = [c.getLeftOperand(), c.getRightOperand()]
31+
)
3232
}
3333
}
3434

0 commit comments

Comments
 (0)