]> granicus.if.org Git - python/commit
bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1508)
authorXiang Zhang <angwerzx@126.com>
Tue, 9 May 2017 04:17:09 +0000 (12:17 +0800)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 04:17:09 +0000 (12:17 +0800)
commitf5f7870d9322b46ab87c45b2c4c46f6b10ecbd70
tree580dbe5354952edb49666ed29480b80d977c3741
parentc8faabce6ef318f3b425c6defd846e274d61e2ef
bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1508)

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