From: Richard M. Stallman Date: Sun, 21 Dec 1997 01:59:49 +0000 (+0000) Subject: (x_display_cursor): Abort if X or Y is out of range. X-Git-Tag: emacs-20.3~2586 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=045226c75c2c5cb8eac13dd356dfa5d96fde1ce4;p=emacs.git (x_display_cursor): Abort if X or Y is out of range. --- diff --git a/src/xterm.c b/src/xterm.c index b772b4974b0..06a40fcdf7e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4902,6 +4902,10 @@ x_display_cursor (f, on, x, y) { BLOCK_INPUT; + if ((unsigned) x >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f) + || (unsigned) y >= FRAME_HEIGHT (f)) + abort (); + if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor) x_display_box_cursor (f, on, x, y); else if (FRAME_DESIRED_CURSOR (f) == bar_cursor)