Skip to content

Commit 67f5a32

Browse files
committed
Go: SensitiveConditionBypass
1 parent 5cf7c83 commit 67f5a32

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

go/ql/src/experimental/CWE-807/SensitiveConditionBypass.qll

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,12 @@ private module Config implements DataFlow::ConfigSig {
6060
)
6161
}
6262

63-
predicate observeDiffInformedIncrementalMode() {
64-
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 24 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-807/SensitiveConditionBypass.ql@33:8:33:11)
65-
}
63+
predicate observeDiffInformedIncrementalMode() { any() }
6664

67-
Location getASelectedSourceLocation(DataFlow::Node source) {
68-
none() // TODO: Make sure that this source location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 24 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-807/SensitiveConditionBypass.ql@33:8:33:11)
69-
}
65+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
7066

7167
Location getASelectedSinkLocation(DataFlow::Node sink) {
72-
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 24 (/Users/d10c/src/semmle-code/ql/go/ql/src/experimental/CWE-807/SensitiveConditionBypass.ql@33:8:33:11)
68+
exists(ComparisonExpr comp | result = comp.getLocation() | sink.asExpr() = comp.getAnOperand())
7369
}
7470
}
7571

0 commit comments

Comments
 (0)