Skip to content

Commit f65f863

Browse files
committed
C#: HardcodedConnectionString
1 parent 4a87d5f commit f65f863

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

csharp/ql/src/Security Features/CWE-798/HardcodedConnectionString.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ module ConnectionStringConfig implements DataFlow::ConfigSig {
3939

4040
predicate isBarrier(DataFlow::Node node) { node instanceof StringFormatSanitizer }
4141

42-
predicate observeDiffInformedIncrementalMode() {
43-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 5 does not select a source or sink originating from the flow call on line 49 (/Users/d10c/src/semmle-code/ql/csharp/ql/src/Security Features/CWE-798/HardcodedConnectionString.ql@52:3:52:73)
42+
predicate observeDiffInformedIncrementalMode() { any() }
43+
44+
Location getASelectedSinkLocation(DataFlow::Node sink) {
45+
any(Call call | call.getAnArgument() = sink.asExpr()).getLocation() = result
4446
}
4547
}
4648

0 commit comments

Comments
 (0)