Repository navigation
Commit f2d87e0
Fix unvalidated TerminalProfileSize during distribution import (#41495)
* Fix unvalidated TerminalProfileSize when importing a distribution
_ProcessImportResultMessage constructed the terminal profile string_view
using the message-supplied TerminalProfileSize without validating it
against the received buffer length. Use the bounds-checked two-argument
span::subspan() overload (matching the existing ShortcutIconSize handling
a few lines above) so an inconsistent size value throws instead of
producing a string_view that runs past the end of the buffer.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 35281c30-3d08-4f05-8c84-2ce4711023d5
* format source
---------
Co-authored-by: Ben Hillis <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 35281c30-3d08-4f05-8c84-2ce4711023d51 parent acf3319 commit f2d87e0
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3509 | 3509 | | |
3510 | 3510 | | |
3511 | 3511 | | |
3512 | | - | |
3513 | | - | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
3514 | 3515 | | |
3515 | 3516 | | |
3516 | 3517 | | |
| |||
0 commit comments