[PR #12699] Fix uninitialized memory access in GetConsoleTitleA test #29195

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

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

State: closed
Merged: Yes


WideCharToMultiByte doesn't write a final null-byte by default.
til::u16u8 avoids the problem.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • Test passes in Debug builds
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12699 **State:** closed **Merged:** Yes --- `WideCharToMultiByte` doesn't write a final null-byte by default. `til::u16u8` avoids the problem. ## PR Checklist * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Test passes in Debug builds ✅
claunia added the pull-request label 2026-01-31 09:33:26 +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#29195