Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06d369b

Browse files
committed
C++: Remove untested PostUpdateNode code for now, and field cases that don't work anyway.
1 parent b2b2c20 commit 06d369b

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ module SourceSinkInterpretationInput implements
193193
c = "" and
194194
n.asExpr().(VariableAccess).getTarget() = ast
195195
)
196-
// TODO: source fields?
197196
}
198197

199198
/** Provides additional source specification logic. */
@@ -204,11 +203,6 @@ module SourceSinkInterpretationInput implements
204203
ast = mid.asElement() and
205204
e.getTarget() = ast
206205
|
207-
// Allow fields to be picked as input nodes.
208-
// TODO: this has no test cases.
209-
c = "" and
210-
e.getQualifier() = n.asExpr()
211-
or
212206
// Allow variables to be picked as input nodes.
213207
// We could simply do this as `e = n.asExpr()`, but that would not allow
214208
// us to pick `x` as a sink in an example such as `x = source()` (but
@@ -222,12 +216,6 @@ module SourceSinkInterpretationInput implements
222216
store.getDestinationAddress().getUnconvertedResultExpression() = e and
223217
n.asInstruction() = store
224218
)
225-
or
226-
// Allow post update nodes to be picked as input nodes when the `input` column
227-
// of the row is `PostUpdate`.
228-
// TODO: this has no test cases.
229-
c = "PostUpdate" and
230-
e.getQualifier() = n.(PostUpdateNode).getPreUpdateNode().asExpr()
231219
)
232220
}
233221
}

0 commit comments

Comments
 (0)