[PR #2765] utils: prevent the corruption of GUID strings #25066

Open
opened 2026-01-31 09:07:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/2765

State: closed
Merged: Yes


Summary of the Pull Request

This off-by-one (regression: #2607) resulted in the following profile and environment corruption:

                                                            vvvvvv
            "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}\u0000",
            "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}\u0000.png",
                                                                                    ^^^^^^

PR Checklist

  • CLA signed.
  • Tests added/passed!
**Original Pull Request:** https://github.com/microsoft/terminal/pull/2765 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This off-by-one (regression: #2607) resulted in the following profile and environment corruption: ``` vvvvvv "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}\u0000", "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}\u0000.png", ^^^^^^ ``` ## PR Checklist * [x] CLA signed. * [x] Tests added/passed!
claunia added the pull-request label 2026-01-31 09:07:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25066