[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/coding.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/coding.c |
Date: |
Mon, 11 Mar 2002 06:28:42 -0500 |
Index: emacs/src/coding.c
diff -c emacs/src/coding.c:1.238 emacs/src/coding.c:1.239
*** emacs/src/coding.c:1.238 Fri Jan 11 16:27:54 2002
--- emacs/src/coding.c Thu Jan 31 23:34:21 2002
***************
*** 811,816 ****
--- 811,820 ----
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);