summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2006-02-02 12:46:51 +0000
committerKenichi Handa <handa@m17n.org>2006-02-02 12:46:51 +0000
commit70f3a4e31d398db7b768e6c8696ec85af68a25af (patch)
treebe7426207fa44d378acd75cc0d28b55a2582977d
parent8350064940b30598da57f76bc519042b52dcc285 (diff)
downloademacs-70f3a4e31d398db7b768e6c8696ec85af68a25af.tar.gz
(decode_composition_emacs_mule): Fix handling of
incorrect format data.
-rw-r--r--src/coding.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 5985e895ef6..385481d1a63 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -872,7 +872,7 @@ decode_composition_emacs_mule (coding, src, src_end,
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 @@ decode_composition_emacs_mule (coding, src, src_end,
else
return 0;
}
+ else
+ return 0;
if (buf == bufp || dst + (bufp - buf) <= (dst_bytes ? dst_end : src))
{