X Tutup
Skip to content

Commit a27518f

Browse files
authored
[release/v7.4] add CodeQL suppresion for NativeCommandProcessor (#26174)
1 parent c986ccc commit a27518f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/System.Management.Automation/engine/NativeCommandProcessor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,7 @@ private ProcessStartInfo GetProcessStartInfo(
14691469
{
14701470
using (ParameterBinderBase.bindingTracer.TraceScope("BIND argument [{0}]", NativeParameterBinderController.Arguments))
14711471
{
1472+
// codeql[cs/microsoft/command-line-injection ] - This is intended PowerShell behavior as NativeParameterBinderController.Arguments is what the native parameter binder generates based on the user input when invoking the command and cannot be injected externally.
14721473
startInfo.Arguments = NativeParameterBinderController.Arguments;
14731474
}
14741475
}

0 commit comments

Comments
 (0)
X Tutup