changeset 21496:6ec5e85328a9

(Fcompute_motion): Check that TO and FROM are in range.
author Karl Heuer <kwzh@gnu.org>
date Mon, 13 Apr 1998 18:56:00 +0000
parents 8a45c0e518fa
children 837148a1541f
files src/indent.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Mon Apr 13 18:55:05 1998 +0000
+++ b/src/indent.c	Mon Apr 13 18:56:00 1998 +0000
@@ -1566,6 +1566,11 @@
   else
     CHECK_LIVE_WINDOW (window, 0);
 
+  if (XINT (from) < BEGV || XINT (from) > ZV)
+    args_out_of_range_3 (from, make_number (BEGV), make_number (ZV));
+  if (XINT (to) < BEGV || XINT (to) > ZV)
+    args_out_of_range_3 (to, make_number (BEGV), make_number (ZV));
+
   pos = compute_motion (XINT (from), XINT (XCONS (frompos)->cdr),
 			XINT (XCONS (frompos)->car), 0,
 			XINT (to), XINT (XCONS (topos)->cdr),