changeset 89730:d8fcefca5cf6

(decode_coding_sjis): Check the first byte rigidly.
author Kenichi Handa <handa@m17n.org>
date Sat, 24 Jan 2004 09:13:19 +0000
parents 26b6b7710a08
children e4b184cef172
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Sat Jan 24 05:01:45 2004 +0000
+++ b/src/coding.c	Sat Jan 24 09:13:19 2004 +0000
@@ -4025,6 +4025,8 @@
 	goto invalid_code;
       if (c < 0x80)
 	charset = charset_roman;
+      else if (c == 0x80)
+	goto invalid_code;
       else
 	{
 	  if (c >= 0xF0)