From: Kenichi Handa Date: Sat, 24 Jan 2004 09:13:19 +0000 (+0000) Subject: (decode_coding_sjis): Check the first byte rigidly. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1618 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e921c4b65f85e8d5018c2866dda1ceb5a837cac;p=emacs.git (decode_coding_sjis): Check the first byte rigidly. --- diff --git a/src/coding.c b/src/coding.c index 9da19e53c2e..2353834b4ad 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4025,6 +4025,8 @@ decode_coding_sjis (coding) goto invalid_code; if (c < 0x80) charset = charset_roman; + else if (c == 0x80) + goto invalid_code; else { if (c >= 0xF0)