diff options
| author | Kenichi Handa | 2004-01-24 09:13:19 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-01-24 09:13:19 +0000 |
| commit | 8e921c4b65f85e8d5018c2866dda1ceb5a837cac (patch) | |
| tree | beb9b38fc94fb99beaa983dfc2577d6600350fe8 /src/coding.c | |
| parent | abf8189e018236c5550af5c16e16083546d2b0b7 (diff) | |
| download | emacs-8e921c4b65f85e8d5018c2866dda1ceb5a837cac.tar.gz emacs-8e921c4b65f85e8d5018c2866dda1ceb5a837cac.zip | |
(decode_coding_sjis): Check the first byte rigidly.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
| 4025 | goto invalid_code; | 4025 | goto invalid_code; |
| 4026 | if (c < 0x80) | 4026 | if (c < 0x80) |
| 4027 | charset = charset_roman; | 4027 | charset = charset_roman; |
| 4028 | else if (c == 0x80) | ||
| 4029 | goto invalid_code; | ||
| 4028 | else | 4030 | else |
| 4029 | { | 4031 | { |
| 4030 | if (c >= 0xF0) | 4032 | if (c >= 0xF0) |