[PR #4871] [MERGED] Don't let ConptyConnection be UAF #26003

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4871
Author: @DHowett-MSFT
Created: 3/10/2020
Status: Merged
Merged: 3/10/2020
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/uaf


📝 Commits (1)

  • c077e6a Don't let ConptyConnection be UAF

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalConnection/ConptyConnection.cpp (+4 -0)

📄 Description

I noticed a crash in debug builds when a connected application terminates; we get its exit code, then we destruct, and the u16state is used after it's destructed by the process's last words.


🔄 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/4871 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 3/10/2020 **Status:** ✅ Merged **Merged:** 3/10/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/uaf` --- ### 📝 Commits (1) - [`c077e6a`](https://github.com/microsoft/terminal/commit/c077e6a6a1e88907910b3f7980163abaaac68679) Don't let ConptyConnection be UAF ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalConnection/ConptyConnection.cpp` (+4 -0) </details> ### 📄 Description I noticed a crash in debug builds when a connected application terminates; we get its exit code, then we destruct, and the u16state is used after it's destructed by the process's last words. --- <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:13:15 +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#26003