Avoid rare segfaults in 'combine_updates_for_frame'

* src/xdisp.c (redisplay_internal): Don't add to 'tty_root_frames'
frames that are not yet completely made.  (Bug#77046)
This commit is contained in:
Eli Zaretskii 2025-03-16 13:35:18 +02:00
parent db0bed7a68
commit 412a6fad98

View file

@ -17569,7 +17569,10 @@ redisplay_internal (void)
if (is_tty_frame (f))
{
/* Ignore all invisible tty frames, children or root. */
if (!frame_redisplay_p (f))
if (!frame_redisplay_p (f)
/* Ignore frames not yet completely made, which we
cannot safely redisplay. */
|| !f->after_make_frame)
continue;
/* Remember tty root frames which we've seen. */