[PR #13530] [MERGED] AtlasEngine: Improve robustness against TextBuffer bugs #29608

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13530
Author: @lhecker
Created: 7/18/2022
Status: Merged
Merged: 7/19/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/13522-bad-clusters


📝 Commits (1)

  • c8505c0 AtlasEngine: Improve robustness against TextBuffer bugs

📊 Changes

2 files changed (+36 additions, -10 deletions)

View changed files

📝 src/renderer/atlas/AtlasEngine.cpp (+35 -9)
📝 src/renderer/atlas/AtlasEngine.h (+1 -1)

📄 Description

The current TextBuffer implementation will happily overwrite the
leading/trailing half of a wide glyph with a narrow one without
padding the other half with whitespace. This could crash AtlasEngine
which aggressively guarded against such inconsistencies.

Closes #13522

Validation Steps Performed

  • Run .bat file linked in #13522
    (Override wide glyph with a single space.)
  • AtlasEngine doesn't crash

🔄 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/13530 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 7/18/2022 **Status:** ✅ Merged **Merged:** 7/19/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/13522-bad-clusters` --- ### 📝 Commits (1) - [`c8505c0`](https://github.com/microsoft/terminal/commit/c8505c08fdc38812059436816833a3fe229611a5) AtlasEngine: Improve robustness against TextBuffer bugs ### 📊 Changes **2 files changed** (+36 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/AtlasEngine.cpp` (+35 -9) 📝 `src/renderer/atlas/AtlasEngine.h` (+1 -1) </details> ### 📄 Description The current TextBuffer implementation will happily overwrite the leading/trailing half of a wide glyph with a narrow one without padding the other half with whitespace. This could crash AtlasEngine which aggressively guarded against such inconsistencies. Closes #13522 ## Validation Steps Performed * Run .bat file linked in #13522 (Override wide glyph with a single space.) * `AtlasEngine` doesn't crash ✅ --- <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:53 +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#29608