File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
powershell/ql/lib/semmle/code/powershell/dataflow/internal Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,15 @@ private module Cached {
293
293
n instanceof ParameterNode
294
294
or
295
295
// Expressions that can't be reached from another entry definition or expression
296
- n instanceof ExprNode and
296
+ (
297
+ n instanceof ExprNode
298
+ or
299
+ exists ( CfgNodes:: StmtNodes:: AssignStmtCfgNode assign | assign .getRightHandSide ( ) = n .asStmt ( ) )
300
+ or
301
+ n .asStmt ( ) instanceof CfgNodes:: StmtNodes:: CmdCfgNode
302
+ or
303
+ exists ( CfgNodes:: StmtNodes:: PipelineCfgNode pipeline | n .asStmt ( ) = pipeline .getAComponent ( ) )
304
+ ) and
297
305
not reachedFromExprOrEntrySsaDef ( n )
298
306
or
299
307
// Ensure all entry SSA definitions are local sources, except those that correspond
You can’t perform that action at this time.
0 commit comments