[PR #14345] Initialize all members of Terminal #30062

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

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

State: closed
Merged: Yes


The following members were not initialized during construction:

  • CursorType _defaultCursorShape
  • bool _suppressApplicationTitle
  • bool _bracketedPasteMode
  • size_t _hyperlinkPatternId
  • SelectionExpansion _multiClickSelectionMode
  • til::CoordType _scrollbackLines

Unlike gcc and clang, MSVC is fairly tame when it comes to removing code
tainted by undefined behavior, so the most likely affect this had is that
we were reading uninitialized memory.

Related to #14129.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14345 **State:** closed **Merged:** Yes --- The following members were not initialized during construction: * `CursorType _defaultCursorShape` * `bool _suppressApplicationTitle` * `bool _bracketedPasteMode` * `size_t _hyperlinkPatternId` * `SelectionExpansion _multiClickSelectionMode` * `til::CoordType _scrollbackLines` Unlike gcc and clang, MSVC is fairly tame when it comes to removing code tainted by undefined behavior, so the most likely affect this had is that we were reading uninitialized memory. Related to #14129.
claunia added the pull-request label 2026-01-31 09:38:25 +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#30062