gets too large to index `component'.
+2002-02-01 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * coding.c (decode_composition_emacs_mule): Give up if NCOMPONENT
+ gets too large to index `component'.
+
2002-01-28 Richard M. Stallman <rms@gnu.org>
* buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
return 0;
for (ncomponent = 0; src < src_base + data_len; ncomponent++)
{
+ /* If it is longer than this, it can't be valid. */
+ if (ncomponent >= COMPOSITION_DATA_MAX_BUNCH_LENGTH)
+ return 0;
+
if (ncomponent % 2 && with_rule)
{
ONE_MORE_BYTE (gref);