We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f58b19 commit 4344e70Copy full SHA for 4344e70
1 file changed
powershell/ql/lib/semmle/code/powershell/dataflow/internal/DataFlowPrivate.qll
@@ -293,7 +293,15 @@ private module Cached {
293
n instanceof ParameterNode
294
or
295
// Expressions that can't be reached from another entry definition or expression
296
- n instanceof ExprNode and
+ (
297
+ n instanceof ExprNode
298
+ or
299
+ exists(CfgNodes::StmtNodes::AssignStmtCfgNode assign | assign.getRightHandSide() = n.asStmt())
300
301
+ n.asStmt() instanceof CfgNodes::StmtNodes::CmdCfgNode
302
303
+ exists(CfgNodes::StmtNodes::PipelineCfgNode pipeline | n.asStmt() = pipeline.getAComponent())
304
+ ) and
305
not reachedFromExprOrEntrySsaDef(n)
306
307
// Ensure all entry SSA definitions are local sources, except those that correspond
0 commit comments