Skip to content

Commit 241b8a0

Browse files
committed
Java/C++/C#: Address review comment.
1 parent 041bcc5 commit 241b8a0

File tree

19 files changed

+19
-38
lines changed

19 files changed

+19
-38
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ private predicate readStoreCandFwd2(Content f, Configuration config) {
853853
}
854854

855855
private predicate summaryFwd2(Summary s, Configuration config) {
856-
s = TSummaryTaint()
857-
or
856+
// No need for the `s = TSummaryTaint()` case as it is not used with `argumentFlowsThroughFwd2`.
858857
exists(Content f | s = TSummaryReadTaint(f) | readStoreCandFwd2(f, config))
859858
or
860859
exists(Content f | s = TSummaryTaintStore(f) | readStoreCandFwd2(f, config))

0 commit comments

Comments
 (0)