Skip to content

Fix a crash during commandline handoff #19096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025
Merged

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

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