From 8e921c4b65f85e8d5018c2866dda1ceb5a837cac Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Sat, 24 Jan 2004 09:13:19 +0000 Subject: [PATCH] (decode_coding_sjis): Check the first byte rigidly. --- src/coding.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2