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
daxian-dbw
added
the
CL-General
label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters