Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 15, 2025

Backport of #119568 to release/10.0

/cc @jkoritzinsky @nike4613

Customer Impact

  • Customer reported
  • Found internally

Prevents environment variables with formating markup from being passed through to redirected output formatting.

Regression

  • Yes
  • No

This passthrough from environment variable is only possible in .NET 10.

Testing

Manual validation.

Risk

Low. Isolated fix.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@jkoritzinsky
Copy link
Member

/backport to release/9.0

@github-actions
Copy link
Contributor Author

Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/17781043673

@github-actions
Copy link
Contributor Author

@jkoritzinsky backporting to "release/9.0" failed, the patch most likely resulted in conflicts:

$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Prevent format injection in hosting Windows PAL printf functions when redirected to file
.git/rebase-apply/patch:20: trailing whitespace.
    
warning: 1 line adds whitespace errors.
Using index info to reconstruct a base tree...
M	src/native/corehost/hostmisc/pal.windows.cpp
Falling back to patching base and 3-way merge...
Auto-merging src/native/corehost/hostmisc/pal.windows.cpp
CONFLICT (content): Merge conflict in src/native/corehost/hostmisc/pal.windows.cpp
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Prevent format injection in hosting Windows PAL printf functions when redirected to file
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@JulieLeeMSFT JulieLeeMSFT added the Servicing-approved Approved for servicing release label Sep 16, 2025
Copy link
Member

@JulieLeeMSFT JulieLeeMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@JulieLeeMSFT JulieLeeMSFT added this to the 10.0.0 milestone Sep 16, 2025
@agocke
Copy link
Member

agocke commented Sep 18, 2025

/ba-g failures are unrelated. Regex and apphost test failures.

@agocke agocke merged commit 7fc469a into release/10.0 Sep 18, 2025
153 of 159 checks passed
@agocke agocke deleted the backport/pr-119568-to-release/10.0 branch September 18, 2025 17:37
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Host Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants