Skip to content

Commit 50f5c4d

Browse files
committed
DataFlow: Don't support stateless sink nodes in partial flow exploration.
1 parent a5f521c commit 50f5c4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/dataflow/codeql/dataflow/DataFlowImpl.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4003,7 +4003,7 @@ module MakeImpl<DataFlowParameter Lang> {
40034003

40044004
private predicate relevantState(FlowState state) {
40054005
sourceNode(_, state) or
4006-
sinkNode(_, state) or
4006+
sinkNodeWithState(_, state) or
40074007
additionalLocalStateStep(_, state, _, _) or
40084008
additionalLocalStateStep(_, _, _, state) or
40094009
additionalJumpStateStep(_, state, _, _) or
@@ -4060,7 +4060,7 @@ module MakeImpl<DataFlowParameter Lang> {
40604060
NodeEx node, FlowState state, TRevSummaryCtx1 sc1, TRevSummaryCtx2 sc2,
40614061
TRevSummaryCtx3 sc3, PartialAccessPath ap
40624062
) {
4063-
sinkNode(node, state) and
4063+
sinkNodeWithState(node, state) and
40644064
sc1 = TRevSummaryCtx1None() and
40654065
sc2 = TRevSummaryCtx2None() and
40664066
sc3 = TRevSummaryCtx3None() and
@@ -4278,7 +4278,7 @@ module MakeImpl<DataFlowParameter Lang> {
42784278
}
42794279

42804280
predicate isSink() {
4281-
sinkNode(node, state) and
4281+
sinkNodeWithState(node, state) and
42824282
sc1 = TRevSummaryCtx1None() and
42834283
sc2 = TRevSummaryCtx2None() and
42844284
sc3 = TRevSummaryCtx3None() and

0 commit comments

Comments
 (0)