changeset 106564:fea46c7aca79

(decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19) in 8-bit encoding.
author Kenichi Handa <handa@m17n.org>
date Mon, 14 Dec 2009 01:19:28 +0000
parents b07b0e49769d
children 45c915e20813
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Sun Dec 13 23:43:17 2009 +0000
+++ b/src/coding.c	Mon Dec 14 01:19:28 2009 +0000
@@ -3726,6 +3726,8 @@
 	  continue;
 
 	case ISO_single_shift_2_7:
+	  if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS))
+	    goto invalid_code;
 	case ISO_single_shift_2:
 	  if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT))
 	    goto invalid_code;