You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the above script causes Terminal to become unresponsive and then disappear altogether.
As a bonus, we get a nice list of Fibonacci numbers. The last one is 39088169, written just before the crash.
The string sent via the ANSI sequence should be truncated to a sensible length. There's no point in setting a title of one million characters when it can't be displayed, regardless of how small the font is.
Expected Behavior
Windows Terminal keeps running, and at most the active tab gets lost.
Actual Behavior
Windows terminal becomes unresponsive and then the entire window just disappears.
The crash likely occurs because the buffer receiving the OSC 0 sequence is attempting to reallocate or render an arbitrarily large string without a length constraint. You should implement a hard limit on the title length within the OSC string parser, perhaps capping it at a few thousand characters to prevent memory exhaustion or overflow. Have you checked if the crash originates in the string processing layer of the terminal emulator or the underlying rendering engine when it attempts to update the tab metadata?
Activity
cherryrodney26 commentedon Oct 24, 2026
The crash likely occurs because the buffer receiving the OSC 0 sequence is attempting to reallocate or render an arbitrarily large string without a length constraint. You should implement a hard limit on the title length within the OSC string parser, perhaps capping it at a few thousand characters to prevent memory exhaustion or overflow. Have you checked if the crash originates in the string processing layer of the terminal emulator or the underlying rendering engine when it attempts to update the tab metadata?
j4james commentedon Oct 25, 2026
Duplicate of #20838.
Bu11etmagnet commentedon Oct 25, 2026
Drat, I tired searching for title and crash but apparently my search-fu was weak.