Skip to content

Fix a crash during commandline handoff#19096

Merged
DHowett merged 1 commit intomainfrom
dev/lhecker/19093-handoff-abort
Jul 3, 2025
Merged

Fix a crash during commandline handoff#19096
DHowett merged 1 commit intomainfrom
dev/lhecker/19093-handoff-abort

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Jul 3, 2025

The crash occurs because WinRT abort()s when it encounters
a std::wstring_view without null-terminator.

Closes #19093

Validation Steps Performed

  • Set wtd as the default terminal
  • Launch cmd
  • Launch wtd
  • 2 windows ✅

@DHowett DHowett enabled auto-merge (squash) July 3, 2025 21:46
@github-project-automation github-project-automation bot moved this to To Cherry Pick in 1.23 Servicing Pipeline Jul 3, 2025
@DHowett DHowett merged commit ac07afe into main Jul 3, 2025
17 of 19 checks passed
@DHowett DHowett deleted the dev/lhecker/19093-handoff-abort branch July 3, 2025 22:19
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.23 Servicing Pipeline Jul 29, 2025
DHowett pushed a commit that referenced this pull request Jul 29, 2025
The crash occurs because WinRT `abort()`s when it encounters
a `std::wstring_view` without null-terminator.

Closes #19093

## Validation Steps Performed
* Set `wtd` as the default terminal
* Launch `cmd`
* Launch `wtd`
* 2 windows ✅

(cherry picked from commit ac07afe)
Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgcO9T4
Service-Version: 1.23
@DHowett DHowett moved this from Cherry Picked to Shipped in 1.23 Servicing Pipeline Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

After #19088, running wt AFTER launched by handoff causes a crash

2 participants