Skip to content

Commit 8cd261a

Browse files
authored
Merge pull request github#9324 from hvitved/dataflow/prohibits-use-use-fix-join
Data flow: Fix bad join in `prohibitsUseUseFlow`
2 parents deddc52 + 42f05da commit 8cd261a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ module Private {
777777
predicate prohibitsUseUseFlow(ArgNode arg, SummarizedCallable sc) {
778778
exists(ParamNode p, Node mid, ParameterPosition ppos, Node ret |
779779
p = summaryArgParam0(_, arg, sc) and
780-
p.isParameterOf(_, ppos) and
780+
p.isParameterOf(_, pragma[only_bind_into](ppos)) and
781781
summaryLocalStep(p, mid, true) and
782782
summaryLocalStep(mid, ret, true) and
783-
isParameterPostUpdate(ret, _, ppos)
783+
isParameterPostUpdate(ret, _, pragma[only_bind_into](ppos))
784784
|
785785
summaryClearsContent(mid, _) or
786786
summaryExpectsContent(mid, _)

java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ module Private {
777777
predicate prohibitsUseUseFlow(ArgNode arg, SummarizedCallable sc) {
778778
exists(ParamNode p, Node mid, ParameterPosition ppos, Node ret |
779779
p = summaryArgParam0(_, arg, sc) and
780-
p.isParameterOf(_, ppos) and
780+
p.isParameterOf(_, pragma[only_bind_into](ppos)) and
781781
summaryLocalStep(p, mid, true) and
782782
summaryLocalStep(mid, ret, true) and
783-
isParameterPostUpdate(ret, _, ppos)
783+
isParameterPostUpdate(ret, _, pragma[only_bind_into](ppos))
784784
|
785785
summaryClearsContent(mid, _) or
786786
summaryExpectsContent(mid, _)

ruby/ql/lib/codeql/ruby/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ module Private {
777777
predicate prohibitsUseUseFlow(ArgNode arg, SummarizedCallable sc) {
778778
exists(ParamNode p, Node mid, ParameterPosition ppos, Node ret |
779779
p = summaryArgParam0(_, arg, sc) and
780-
p.isParameterOf(_, ppos) and
780+
p.isParameterOf(_, pragma[only_bind_into](ppos)) and
781781
summaryLocalStep(p, mid, true) and
782782
summaryLocalStep(mid, ret, true) and
783-
isParameterPostUpdate(ret, _, ppos)
783+
isParameterPostUpdate(ret, _, pragma[only_bind_into](ppos))
784784
|
785785
summaryClearsContent(mid, _) or
786786
summaryExpectsContent(mid, _)

0 commit comments

Comments
 (0)