Skip to content

Commit eafc007

Browse files
committed
Legacy dataflow: Sync.
1 parent 2925e45 commit eafc007

File tree

46 files changed

+102
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+102
-74
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

cpp/ql/lib/semmle/code/cpp/dataflow/internal/tainttracking1/TaintTrackingImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ abstract deprecated class Configuration extends DataFlow::Configuration {
127127

128128
final override predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
129129
this.isAdditionalTaintStep(node1, node2) or
130-
defaultAdditionalTaintStep(node1, node2)
130+
defaultAdditionalTaintStep(node1, node2, _)
131131
}
132132

133133
/**

cpp/ql/lib/semmle/code/cpp/dataflow/internal/tainttracking2/TaintTrackingImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ abstract deprecated class Configuration extends DataFlow::Configuration {
127127

128128
final override predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
129129
this.isAdditionalTaintStep(node1, node2) or
130-
defaultAdditionalTaintStep(node1, node2)
130+
defaultAdditionalTaintStep(node1, node2, _)
131131
}
132132

133133
/**

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ deprecated private module Config implements FullStateConfigSig {
263263

264264
predicate isBarrierOut(Node node, FlowState state) { none() }
265265

266-
predicate isAdditionalFlowStep(Node node1, Node node2) {
266+
predicate isAdditionalFlowStep(Node node1, Node node2, string model) {
267267
singleConfiguration() and
268-
any(Configuration config).isAdditionalFlowStep(node1, node2)
268+
any(Configuration config).isAdditionalFlowStep(node1, node2) and
269+
model = ""
269270
}
270271

271272
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {

0 commit comments

Comments
 (0)