Skip to content

Commit 911ddb9

Browse files
committed
Dataflow: Sync DataFlowImplCommon
1 parent c9a833f commit 911ddb9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ predicate accessPathCostLimits(int apLimit, int tupleLimit) {
8080
pragma[noinline]
8181
predicate argumentPositionMatch(DataFlowCall call, ArgNode arg, ParameterPosition ppos) {
8282
exists(ArgumentPosition apos |
83-
arg.argumentOf(call, apos) and
84-
parameterMatch(ppos, apos)
83+
arg.argumentOf(call, pragma[only_bind_into](apos)) and
84+
parameterMatch(ppos, pragma[only_bind_into](apos))
8585
)
8686
}
8787

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ predicate accessPathCostLimits(int apLimit, int tupleLimit) {
8080
pragma[noinline]
8181
predicate argumentPositionMatch(DataFlowCall call, ArgNode arg, ParameterPosition ppos) {
8282
exists(ArgumentPosition apos |
83-
arg.argumentOf(call, apos) and
84-
parameterMatch(ppos, apos)
83+
arg.argumentOf(call, pragma[only_bind_into](apos)) and
84+
parameterMatch(ppos, pragma[only_bind_into](apos))
8585
)
8686
}
8787

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ predicate accessPathCostLimits(int apLimit, int tupleLimit) {
8080
pragma[noinline]
8181
predicate argumentPositionMatch(DataFlowCall call, ArgNode arg, ParameterPosition ppos) {
8282
exists(ArgumentPosition apos |
83-
arg.argumentOf(call, apos) and
84-
parameterMatch(ppos, apos)
83+
arg.argumentOf(call, pragma[only_bind_into](apos)) and
84+
parameterMatch(ppos, pragma[only_bind_into](apos))
8585
)
8686
}
8787

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ predicate accessPathCostLimits(int apLimit, int tupleLimit) {
8080
pragma[noinline]
8181
predicate argumentPositionMatch(DataFlowCall call, ArgNode arg, ParameterPosition ppos) {
8282
exists(ArgumentPosition apos |
83-
arg.argumentOf(call, apos) and
84-
parameterMatch(ppos, apos)
83+
arg.argumentOf(call, pragma[only_bind_into](apos)) and
84+
parameterMatch(ppos, pragma[only_bind_into](apos))
8585
)
8686
}
8787

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplCommon.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ predicate accessPathCostLimits(int apLimit, int tupleLimit) {
8080
pragma[noinline]
8181
predicate argumentPositionMatch(DataFlowCall call, ArgNode arg, ParameterPosition ppos) {
8282
exists(ArgumentPosition apos |
83-
arg.argumentOf(call, apos) and
84-
parameterMatch(ppos, apos)
83+
arg.argumentOf(call, pragma[only_bind_into](apos)) and
84+
parameterMatch(ppos, pragma[only_bind_into](apos))
8585
)
8686
}
8787

0 commit comments

Comments
 (0)