From: Kenichi Handa Date: Fri, 19 Jan 2001 03:50:40 +0000 (+0000) Subject: (check_composition): Check validity of composition. X-Git-Tag: emacs-pretest-21.0.96~215 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ee6df62dd9f70219cd3e75f5bdddcccbb342dce;p=emacs.git (check_composition): Check validity of composition. --- diff --git a/src/indent.c b/src/indent.c index f10221b082a..9e187b80d3f 100644 --- a/src/indent.c +++ b/src/indent.c @@ -281,7 +281,8 @@ check_composition (pos, pos_byte, point, len, len_byte, width) int id; if (! find_composition (pos, -1, &start, &end, &prop, Qnil) - || pos != start || point < end) + || pos != start || point < end + || !COMPOSITION_VALID_P (start, end, prop)) return 0; if ((id = get_composition_id (pos, pos_byte, end - pos, prop, Qnil)) < 0) return 0;