aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-12-21 01:59:49 +0000
committerRichard M. Stallman1997-12-21 01:59:49 +0000
commit045226c75c2c5cb8eac13dd356dfa5d96fde1ce4 (patch)
tree6383dea52e66c9a933324937f74f00431421aa39
parent47ab3db57b3d6fe97bd243b5feeb88ea5adf42ec (diff)
downloademacs-045226c75c2c5cb8eac13dd356dfa5d96fde1ce4.tar.gz
emacs-045226c75c2c5cb8eac13dd356dfa5d96fde1ce4.zip
(x_display_cursor): Abort if X or Y is out of range.
-rw-r--r--src/xterm.c4
1 files changed, 4 insertions, 0 deletions
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)
4902{ 4902{
4903 BLOCK_INPUT; 4903 BLOCK_INPUT;
4904 4904
4905 if ((unsigned) x >= FRAME_WIDTH (f) + FRAME_LEFT_SCROLL_BAR_WIDTH (f)
4906 || (unsigned) y >= FRAME_HEIGHT (f))
4907 abort ();
4908
4905 if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor) 4909 if (FRAME_DESIRED_CURSOR (f) == filled_box_cursor)
4906 x_display_box_cursor (f, on, x, y); 4910 x_display_box_cursor (f, on, x, y);
4907 else if (FRAME_DESIRED_CURSOR (f) == bar_cursor) 4911 else if (FRAME_DESIRED_CURSOR (f) == bar_cursor)