File tree Expand file tree Collapse file tree
cpp/ql/lib/semmle/code/cpp/dataflow/internal Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments