1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

(x_display_cursor): Abort if X or Y is out of range.

This commit is contained in:
Richard M. Stallman 1997-12-21 01:59:49 +00:00
parent 47ab3db57b
commit 045226c75c

View File

@ -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)