[PR #15889] AtlasEngine: Harden against invalid soft fonts #30768

Closed
opened 2026-01-31 09:42:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/15889

State: closed
Merged: Yes


This is a theoretical improvement for #15553 where Windows Terminal
crashed due to AtlasEngine accessing the soft font bitmap outside of
bounds. The problem is that the soft font cell size was non-zero.
This PR hardens against such situations by checking whether the
requested soft font index is inside the bounds of the bitmaps.
The improvement couldn't be tested as it couldn't be reproduced.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15889 **State:** closed **Merged:** Yes --- This is a theoretical improvement for #15553 where Windows Terminal crashed due to AtlasEngine accessing the soft font bitmap outside of bounds. The problem is that the soft font cell size was non-zero. This PR hardens against such situations by checking whether the requested soft font index is inside the bounds of the bitmaps. The improvement couldn't be tested as it couldn't be reproduced.
claunia added the pull-request label 2026-01-31 09:42:50 +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#30768