mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-16 08:50:08 +00:00
(decode_coding_iso2022): More strict check for handling single
shifting.
This commit is contained in:
parent
99bb2c6002
commit
e7046a1877
1 changed files with 4 additions and 0 deletions
|
@ -1471,6 +1471,8 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
|
|||
goto label_invalid_code;
|
||||
charset = CODING_SPEC_ISO_DESIGNATION (coding, 2);
|
||||
ONE_MORE_BYTE (c1);
|
||||
if (c1 < 0x20 || (c1 >= 0x80 && c1 < 0xA0))
|
||||
goto label_invalid_code;
|
||||
break;
|
||||
|
||||
case 'O': /* invocation of single-shift-3 */
|
||||
|
@ -1479,6 +1481,8 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
|
|||
goto label_invalid_code;
|
||||
charset = CODING_SPEC_ISO_DESIGNATION (coding, 3);
|
||||
ONE_MORE_BYTE (c1);
|
||||
if (c1 < 0x20 || (c1 >= 0x80 && c1 < 0xA0))
|
||||
goto label_invalid_code;
|
||||
break;
|
||||
|
||||
case '0': case '2': case '3': case '4': /* start composition */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue