Commit 045226c7 authored by Richard M. Stallman's avatar Richard M. Stallman

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

parent 47ab3db5
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment