Commit e3b3e327 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Ffind_composition_internal): Check POS

for validity.
parent 855eca56
......@@ -777,8 +777,18 @@ See `find-composition' for more detail.")
}
else
end = -1;
if (!NILP (string))
CHECK_STRING (string, 2);
{
CHECK_STRING (string, 2);
if (XINT (pos) < 0 || XINT (pos) >= XSTRING (string)->size)
args_out_of_range (string, pos);
}
else
{
if (XINT (pos) < BEGV || XINT (pos) >= ZV)
args_out_of_range (Fcurrent_buffer (), pos);
}
if (!find_composition (start, end, &start, &end, &prop, string))
return Qnil;
......
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