Skip to content

Commit 0e830f6

Browse files
committed
C#/Ruby/Java: Fix pragmas.
1 parent af7df79 commit 0e830f6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ module Private {
785785
private ParamNode summaryArgParam(ArgNode arg, ReturnNodeExt ret, OutNodeExt out) {
786786
exists(DataFlowCall call, ReturnKindExt rk |
787787
result = summaryArgParam0(call, arg) and
788-
pragma[only_bind_out](ret).getKind() = pragma[only_bind_into](rk) and
788+
ret.getKind() = pragma[only_bind_into](rk) and
789789
out = pragma[only_bind_into](rk).getAnOutNode(call)
790790
)
791791
}
@@ -800,8 +800,8 @@ module Private {
800800
predicate summaryThroughStepValue(ArgNode arg, Node out) {
801801
exists(ReturnKind rk, ReturnNode ret, DataFlowCall call |
802802
summaryLocalStep(summaryArgParam0(call, arg), ret, true) and
803-
ret.getKind() = rk and
804-
out = getAnOutNode(call, rk)
803+
ret.getKind() = pragma[only_bind_into](rk) and
804+
out = getAnOutNode(call, pragma[only_bind_into](rk))
805805
)
806806
}
807807

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ module Private {
785785
private ParamNode summaryArgParam(ArgNode arg, ReturnNodeExt ret, OutNodeExt out) {
786786
exists(DataFlowCall call, ReturnKindExt rk |
787787
result = summaryArgParam0(call, arg) and
788-
pragma[only_bind_out](ret).getKind() = pragma[only_bind_into](rk) and
788+
ret.getKind() = pragma[only_bind_into](rk) and
789789
out = pragma[only_bind_into](rk).getAnOutNode(call)
790790
)
791791
}
@@ -800,8 +800,8 @@ module Private {
800800
predicate summaryThroughStepValue(ArgNode arg, Node out) {
801801
exists(ReturnKind rk, ReturnNode ret, DataFlowCall call |
802802
summaryLocalStep(summaryArgParam0(call, arg), ret, true) and
803-
ret.getKind() = rk and
804-
out = getAnOutNode(call, rk)
803+
ret.getKind() = pragma[only_bind_into](rk) and
804+
out = getAnOutNode(call, pragma[only_bind_into](rk))
805805
)
806806
}
807807

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ module Private {
785785
private ParamNode summaryArgParam(ArgNode arg, ReturnNodeExt ret, OutNodeExt out) {
786786
exists(DataFlowCall call, ReturnKindExt rk |
787787
result = summaryArgParam0(call, arg) and
788-
pragma[only_bind_out](ret).getKind() = pragma[only_bind_into](rk) and
788+
ret.getKind() = pragma[only_bind_into](rk) and
789789
out = pragma[only_bind_into](rk).getAnOutNode(call)
790790
)
791791
}
@@ -800,8 +800,8 @@ module Private {
800800
predicate summaryThroughStepValue(ArgNode arg, Node out) {
801801
exists(ReturnKind rk, ReturnNode ret, DataFlowCall call |
802802
summaryLocalStep(summaryArgParam0(call, arg), ret, true) and
803-
ret.getKind() = rk and
804-
out = getAnOutNode(call, rk)
803+
ret.getKind() = pragma[only_bind_into](rk) and
804+
out = getAnOutNode(call, pragma[only_bind_into](rk))
805805
)
806806
}
807807

0 commit comments

Comments
 (0)