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:
parent
47ab3db57b
commit
045226c75c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user