Skip to content

Commit b40a437

Browse files
committed
C#: Small optimization. Avoid a small CP between sinks and states.
1 parent 0e887d8 commit b40a437

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ private module TaintedPathConfig implements DataFlow::StateConfigSig {
6464
source instanceof Source and state = NotNormalized()
6565
}
6666

67-
predicate isSink(DataFlow::Node sink, FlowState state) {
68-
sink instanceof Sink and
69-
exists(state)
70-
}
67+
predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
68+
69+
predicate isSink(DataFlow::Node sink, FlowState state) { none() }
7170

7271
predicate isAdditionalFlowStep(DataFlow::Node n1, FlowState s1, DataFlow::Node n2, FlowState s2) {
7372
any(PathNormalizationStep step).isAdditionalFlowStep(n1, n2) and

0 commit comments

Comments
 (0)