Skip to content

Commit 2d045ea

Browse files
committed
PS: Prevent join on integer.
1 parent c50b0c6 commit 2d045ea

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ module Private {
5959

6060
PipelineParameterImpl() {
6161
exists(int index |
62-
i = FunParam(index) and
63-
any(Synthesis s).pipelineParameterHasIndex(super.getDeclaringScopeImpl(), index)
62+
i = FunParam(pragma[only_bind_into](index)) and
63+
any(Synthesis s)
64+
.pipelineParameterHasIndex(super.getDeclaringScopeImpl(), pragma[only_bind_into](index))
6465
)
6566
}
6667

0 commit comments

Comments
 (0)