Skip to content

Commit 86cc09b

Browse files
committed
PS: Start with a SCAN of 'getProcessBlock' as this ensures we start with a small pipeline.
1 parent 31fbb6f commit 86cc09b

File tree

1 file changed

+3
-1
lines changed
  • powershell/ql/lib/semmle/code/powershell/ast/internal

1 file changed

+3
-1
lines changed

powershell/ql/lib/semmle/code/powershell/ast/internal/Synthesis.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ private module IteratorAccessSynth {
789789
exists(Raw::VarAccess va | va = a |
790790
va.getUserPath() = "_"
791791
or
792-
exists(Raw::ProcessBlock pb | pb = getProcessBlock(va) |
792+
exists(Raw::ProcessBlock pb |
793+
pragma[only_bind_into](pb) = getProcessBlock(pragma[only_bind_into](va))
794+
|
793795
va.getUserPath().toLowerCase() =
794796
pb.getScriptBlock().getParamBlock().getPipelineParameter().getLowerCaseName()
795797
or

0 commit comments

Comments
 (0)