[PR #15357] AtlasEngine: Fix multiple minor issues #30611

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

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

State: closed
Merged: Yes


This commit fixes 3 bugs that I found while working on another feature:

  • GetGlyphIndices doesn't return an error when the codepoint couldn't
    be found, it simply returns a glyph index of 0.
  • _resetGlyphAtlas failed to reset the linear_flat_set "load" to 0
    which would result in an unbounded memory growth over time.
  • linear_flat_set was missing move constructors/operators, which
    would've led to crashes, etc., but thankfully we haven't made use
    of these operators yet. But better fix it now than never.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15357 **State:** closed **Merged:** Yes --- This commit fixes 3 bugs that I found while working on another feature: * `GetGlyphIndices` doesn't return an error when the codepoint couldn't be found, it simply returns a glyph index of 0. * `_resetGlyphAtlas` failed to reset the `linear_flat_set` "load" to 0 which would result in an unbounded memory growth over time. * `linear_flat_set` was missing move constructors/operators, which would've led to crashes, etc., but thankfully we haven't made use of these operators yet. But better fix it now than never.
claunia added the pull-request label 2026-01-31 09:41:51 +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#30611