◐ Shell
clean mode source ↗

PSStyle: validate background index against BackgroundColorMap by cuiweixie · Pull Request #27106 · PowerShell/PowerShell

FromAnsiColor checked backgroundColor against ForegroundColorMap.Length, which could throw or allow out-of-range values when the two maps differ in length.

Use BackgroundColorMap.Length for the background bounds check.

AI review requested due to automatic review settings

March 27, 2026 18:21

daxian-dbw

@daxian-dbw daxian-dbw added the CL-General

Indicates that a PR should be marked as a general cmdlet change in the Change Log

label

Mar 31, 2026

daxian-dbw pushed a commit to daxian-dbw/PowerShell that referenced this pull request

Apr 13, 2026

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026