[PR #13493] [MERGED] Fix a bad null deref #29586

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13493
Author: @zadjii-msft
Created: 7/12/2022
Status: ✅ Merged
Merged: 7/12/2022
Merged by: @undefined

Base: main ← Head: dev/migrie/b/sorry-themes


📝 Commits (1)

  • 80239f5 the null deref we were talking about

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 src/cascadia/TerminalApp/TerminalPage.cpp (+3 -3)

📄 Description

Yep this is my bad. I was trying to fix a bug where only having one of background or unfocusedBackground would cause the other to never get set to the default. In attempting to force all the logic into an if statement, I messed up the order of operations. My bad 😢

Regressed in #13456


🔄 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/13493 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 7/12/2022 **Status:** ✅ Merged **Merged:** 7/12/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/sorry-themes` --- ### 📝 Commits (1) - [`80239f5`](https://github.com/microsoft/terminal/commit/80239f54e0cf027d84bce0373d5fcd818543df47) the null deref we were talking about ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+3 -3) </details> ### 📄 Description Yep this is my bad. I was trying to fix a bug where only having one of `background` or `unfocusedBackground` would cause the other to never get set to the default. In attempting to force all the logic into an if statement, I messed up the order of operations. My bad 😢 Regressed in #13456 --- <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:35:46 +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#29586