]> granicus.if.org Git - python/commit
bpo-29990: Fix range checking in GB18030 decoder (#1495)
authorXiang Zhang <angwerzx@126.com>
Tue, 9 May 2017 03:38:32 +0000 (11:38 +0800)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 03:38:32 +0000 (11:38 +0800)
commit9da408d15bdef624a5632182cb4edf98001fa82f
tree55707952ef7b86c4c333122add2bc27101c27ef0
parentfa5abac1e6cd74979557d5a6f960a55f40a10b0e
bpo-29990: Fix range checking in GB18030 decoder (#1495)

When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.
Lib/test/test_codecencodings_cn.py
Misc/NEWS
Modules/cjkcodecs/_codecs_cn.c