Commit dd6f2802 authored by Richard M. Stallman's avatar Richard M. Stallman

(get_char_property_and_overlay):

Signal error if POSITION is out of range in a buffer.
parent d50e9d5b
2007-12-30 Richard Stallman <rms@gnu.org>
* textprop.c (get_char_property_and_overlay):
Signal error if POSITION is out of range in a buffer.
2007-12-29 Martin Rudalics <rudalics@gmx.at>
* w32fns.c (Fx_create_frame): Make copy of frame parameters
......
......@@ -646,6 +646,10 @@ get_char_property_and_overlay (position, prop, object, overlay)
Lisp_Object *overlay_vec;
struct buffer *obuf = current_buffer;
if (XINT (position) < BUF_BEGV (XBUFFER (object))
|| XINT (position) > BUF_ZV (XBUFFER (object)))
xsignal1 (Qargs_out_of_range, position);
set_buffer_temp (XBUFFER (object));
GET_OVERLAYS_AT (XINT (position), overlay_vec, noverlays, NULL, 0);
......
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