Skip to content

Commit 3119885

Browse files
authored
Merge pull request #8638 from smowton/smowton/docs/additional-flow-step-description
Improve wording of isAdditionalFlow/TaintStep qldoc
2 parents a323cce + 28fa49d commit 3119885

File tree

47 files changed

+141
-235
lines changed

Some content is hidden

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

47 files changed

+141
-235
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ abstract class Configuration extends DataFlow::Configuration {
154154
}
155155

156156
/**
157-
* Holds if the additional taint propagation step from `node1` to `node2`
158-
* must be taken into account in the analysis.
157+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
159158
*/
160159
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
161160

@@ -165,9 +164,8 @@ abstract class Configuration extends DataFlow::Configuration {
165164
}
166165

167166
/**
168-
* Holds if the additional taint propagation step from `node1` to `node2`
169-
* must be taken into account in the analysis. This step is only applicable
170-
* in `state1` and updates the flow state to `state2`.
167+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
168+
* This step is only applicable in `state1` and updates the flow state to `state2`.
171169
*/
172170
predicate isAdditionalTaintStep(
173171
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ abstract class Configuration extends DataFlow::Configuration {
154154
}
155155

156156
/**
157-
* Holds if the additional taint propagation step from `node1` to `node2`
158-
* must be taken into account in the analysis.
157+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
159158
*/
160159
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
161160

@@ -165,9 +164,8 @@ abstract class Configuration extends DataFlow::Configuration {
165164
}
166165

167166
/**
168-
* Holds if the additional taint propagation step from `node1` to `node2`
169-
* must be taken into account in the analysis. This step is only applicable
170-
* in `state1` and updates the flow state to `state2`.
167+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
168+
* This step is only applicable in `state1` and updates the flow state to `state2`.
171169
*/
172170
predicate isAdditionalTaintStep(
173171
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ abstract class Configuration extends DataFlow::Configuration {
154154
}
155155

156156
/**
157-
* Holds if the additional taint propagation step from `node1` to `node2`
158-
* must be taken into account in the analysis.
157+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
159158
*/
160159
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
161160

@@ -165,9 +164,8 @@ abstract class Configuration extends DataFlow::Configuration {
165164
}
166165

167166
/**
168-
* Holds if the additional taint propagation step from `node1` to `node2`
169-
* must be taken into account in the analysis. This step is only applicable
170-
* in `state1` and updates the flow state to `state2`.
167+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
168+
* This step is only applicable in `state1` and updates the flow state to `state2`.
171169
*/
172170
predicate isAdditionalTaintStep(
173171
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ abstract class Configuration extends DataFlow::Configuration {
154154
}
155155

156156
/**
157-
* Holds if the additional taint propagation step from `node1` to `node2`
158-
* must be taken into account in the analysis.
157+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
159158
*/
160159
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
161160

@@ -165,9 +164,8 @@ abstract class Configuration extends DataFlow::Configuration {
165164
}
166165

167166
/**
168-
* Holds if the additional taint propagation step from `node1` to `node2`
169-
* must be taken into account in the analysis. This step is only applicable
170-
* in `state1` and updates the flow state to `state2`.
167+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
168+
* This step is only applicable in `state1` and updates the flow state to `state2`.
171169
*/
172170
predicate isAdditionalTaintStep(
173171
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/tainttracking3/TaintTrackingImpl.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ abstract class Configuration extends DataFlow::Configuration {
154154
}
155155

156156
/**
157-
* Holds if the additional taint propagation step from `node1` to `node2`
158-
* must be taken into account in the analysis.
157+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
159158
*/
160159
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
161160

@@ -165,9 +164,8 @@ abstract class Configuration extends DataFlow::Configuration {
165164
}
166165

167166
/**
168-
* Holds if the additional taint propagation step from `node1` to `node2`
169-
* must be taken into account in the analysis. This step is only applicable
170-
* in `state1` and updates the flow state to `state2`.
167+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
168+
* This step is only applicable in `state1` and updates the flow state to `state2`.
171169
*/
172170
predicate isAdditionalTaintStep(
173171
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,13 @@ abstract class Configuration extends string {
112112
predicate isBarrierGuard(BarrierGuard guard, FlowState state) { none() }
113113

114114
/**
115-
* Holds if the additional flow step from `node1` to `node2` must be taken
116-
* into account in the analysis.
115+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
117116
*/
118117
predicate isAdditionalFlowStep(Node node1, Node node2) { none() }
119118

120119
/**
121-
* Holds if the additional flow step from `node1` to `node2` must be taken
122-
* into account in the analysis. This step is only applicable in `state1` and
123-
* updates the flow state to `state2`.
120+
* Holds if data may flow from `node1` to `node2` in addition to the normal data-flow steps.
121+
* This step is only applicable in `state1` and updates the flow state to `state2`.
124122
*/
125123
predicate isAdditionalFlowStep(Node node1, FlowState state1, Node node2, FlowState state2) {
126124
none()

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ abstract class Configuration extends DataFlow::Configuration {
154154
}
155155

156156
/**
157-
* Holds if the additional taint propagation step from `node1` to `node2`
158-
* must be taken into account in the analysis.
157+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
159158
*/
160159
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { none() }
161160

@@ -165,9 +164,8 @@ abstract class Configuration extends DataFlow::Configuration {
165164
}
166165

167166
/**
168-
* Holds if the additional taint propagation step from `node1` to `node2`
169-
* must be taken into account in the analysis. This step is only applicable
170-
* in `state1` and updates the flow state to `state2`.
167+
* Holds if taint may propagate from `node1` to `node2` in addition to the normal data-flow and taint steps.
168+
* This step is only applicable in `state1` and updates the flow state to `state2`.
171169
*/
172170
predicate isAdditionalTaintStep(
173171
DataFlow::Node node1, DataFlow::FlowState state1, DataFlow::Node node2,

0 commit comments

Comments
 (0)