that window start is in [BEGV..ZV].
+1999-12-15 Gerd Moellmann <gerd@gnu.org>
+
+ * xdisp.c (redisplay_window) <optional new window start>: Check
+ that window start is in [BEGV..ZV].
+
1999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
* dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
/* If someone specified a new starting point but did not insist,
check whether it can be used. */
- if (!NILP (w->optional_new_start))
+ if (!NILP (w->optional_new_start)
+ && CHARPOS (startp) >= BEGV
+ && CHARPOS (startp) <= ZV)
{
w->optional_new_start = Qnil;
/* This takes a mini-buffer prompt into account. */