[PR #10711] Make sure we terminate the expected title string #28191

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

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

State: closed
Merged: Yes


When you use the size parameter to WideCharToMultiByte, it only
null-terminates the output string if the input string was
null-terminated within the specified range.

Burned in for 1k runs-

BEFORE

Summary: Total=1000, Passed=997, Failed=3

AFTER

Summary: Total=1000, Passed=1000, Failed=0

Fixes MSFT-34656993

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10711 **State:** closed **Merged:** Yes --- When you use the size parameter to WideCharToMultiByte, it only null-terminates the output string if the input string was null-terminated within the specified range. Burned in for 1k runs- BEFORE Summary: Total=1000, Passed=997, Failed=3 AFTER Summary: Total=1000, Passed=1000, Failed=0 Fixes MSFT-34656993
claunia added the pull-request label 2026-01-31 09:26:52 +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#28191