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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10711
Author: @DHowett
Created: 7/19/2021
Status: Merged
Merged: 7/20/2021
Merged by: @undefined

Base: mainHead: dev/duhowett/yup_more_strings


📝 Commits (1)

  • c87e2aa Make sure we terminate the expected title string

📊 Changes

2 files changed (+5 additions, -1 deletions)

View changed files

📝 OpenConsole.sln (+1 -0)
📝 src/host/ut_host/ApiRoutinesTests.cpp (+4 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10711 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 7/19/2021 **Status:** ✅ Merged **Merged:** 7/20/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/yup_more_strings` --- ### 📝 Commits (1) - [`c87e2aa`](https://github.com/microsoft/terminal/commit/c87e2aafb07d51465247903a0d4d5d0a2426d940) Make sure we terminate the expected title string ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `OpenConsole.sln` (+1 -0) 📝 `src/host/ut_host/ApiRoutinesTests.cpp` (+4 -1) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:26:51 +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#28186