changeset 68567:ae0affba29c8

(decode_composition_emacs_mule): Fix handling of incorrect format data.
author Kenichi Handa <handa@m17n.org>
date Thu, 02 Feb 2006 12:46:51 +0000
parents 15866c79c059
children 520d8c5d312d
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Feb 02 12:28:18 2006 +0000
+++ b/src/coding.c	Thu Feb 02 12:46:51 2006 +0000
@@ -872,7 +872,7 @@
 	  component[ncomponent] = c;
 	}
     }
-  else
+  else if (c >= 0x80)
     {
       /* This may be an old Emacs 20 style format.  See the comment at
 	 the section 2 of this file.  */
@@ -924,6 +924,8 @@
       else
 	return 0;
     }
+  else
+    return 0;
 
   if (buf == bufp || dst + (bufp - buf) <= (dst_bytes ? dst_end : src))
     {