Skip to content

Commit eb19052

Browse files
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 981f675 commit eb19052

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: feature
33
---
4-
* The `StateConfigSig` signature now supports an `isSink/1` predicate that does not specify the `FlowState` for which the given node is a sink. Instead, any `FlowState` is considered a valid `FlowState` for the sink.
4+
* The `StateConfigSig` signature now supports a unary `isSink` predicate that does not specify the `FlowState` for which the given node is a sink. Instead, any `FlowState` is considered a valid `FlowState` for such a sink.

shared/dataflow/codeql/dataflow/DataFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module Configs<DataFlowParameter Lang> {
114114
predicate isSink(Node sink, FlowState state);
115115

116116
/**
117-
* Holds if `sink` is a relevant data flow sink.
117+
* Holds if `sink` is a relevant data flow sink for any state.
118118
*/
119119
default predicate isSink(Node sink) { none() }
120120

shared/dataflow/codeql/dataflow/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4069,7 +4069,7 @@ module MakeImpl<DataFlowParameter Lang> {
40694069
NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
40704070
TRevSummaryCtx3 sc3, PartialAccessPath ap
40714071
) {
4072-
sinkNodeWithState(node, state) and
4072+
revSinkNode(node, state) and
40734073
sc1 = TRevSummaryCtx1None() and
40744074
sc2 = TRevSummaryCtx2None() and
40754075
sc3 = TRevSummaryCtx3None() and
@@ -4287,7 +4287,7 @@ module MakeImpl<DataFlowParameter Lang> {
42874287
}
42884288

42894289
predicate isSink() {
4290-
sinkNodeWithState(node, state) and
4290+
revSinkNode(node, state) and
42914291
sc1 = TRevSummaryCtx1None() and
42924292
sc2 = TRevSummaryCtx2None() and
42934293
sc3 = TRevSummaryCtx3None() and

0 commit comments

Comments
 (0)