]> granicus.if.org Git - python/commit
bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1507)
authorXiang Zhang <angwerzx@126.com>
Tue, 9 May 2017 04:16:50 +0000 (12:16 +0800)
committerGitHub <noreply@github.com>
Tue, 9 May 2017 04:16:50 +0000 (12:16 +0800)
commit72e1b61da0920c5607481304879e039b63e2a3d5
tree52f1ec56a43f60681bdcaf3efa945716e101dd3e
parent410d75ab71e2db0fdc8b2016600a3d3d4830f38e
bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1507)

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