aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2006-02-02 12:47:04 +0000
committerKenichi Handa2006-02-02 12:47:04 +0000
commit999a0fe581bf2788cd438d03f7f33d4a1d0f0646 (patch)
treeefa7a05e593aca1718f94192e42682695e0f30a0 /src
parent0ddb3356b25df5004b68be986d57e38cc2bb6395 (diff)
downloademacs-999a0fe581bf2788cd438d03f7f33d4a1d0f0646.tar.gz
emacs-999a0fe581bf2788cd438d03f7f33d4a1d0f0646.zip
(decode_composition_emacs_mule): Fix handling of
incorrect format data.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d170c6cd168..056bb851f4a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-02-02 Kenichi Handa <handa@m17n.org>
2
3 * coding.c (decode_composition_emacs_mule): Fix handling of
4 incorrect format data.
5
12006-01-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62006-01-31 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions 8 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
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,
872 component[ncomponent] = c; 872 component[ncomponent] = c;
873 } 873 }
874 } 874 }
875 else 875 else if (c >= 0x80)
876 { 876 {
877 /* This may be an old Emacs 20 style format. See the comment at 877 /* This may be an old Emacs 20 style format. See the comment at
878 the section 2 of this file. */ 878 the section 2 of this file. */
@@ -924,6 +924,8 @@ decode_composition_emacs_mule (coding, src, src_end,
924 else 924 else
925 return 0; 925 return 0;
926 } 926 }
927 else
928 return 0;
927 929
928 if (buf == bufp || dst + (bufp - buf) <= (dst_bytes ? dst_end : src)) 930 if (buf == bufp || dst + (bufp - buf) <= (dst_bytes ? dst_end : src))
929 { 931 {