[Python-checkins] [python/cpython] f5f787: bpo-29990: Fix range checking in GB18030 decoder (...

GitHub noreply at github.com
Tue May 9 00:17:11 EDT 2017


  Branch: refs/heads/3.5
  Home:   https://github.com/python/cpython
  Commit: f5f7870d9322b46ab87c45b2c4c46f6b10ecbd70
      https://github.com/python/cpython/commit/f5f7870d9322b46ab87c45b2c4c46f6b10ecbd70
  Author: Xiang Zhang <angwerzx at 126.com>
  Date:   2017-05-09 (Tue, 09 May 2017)

  Changed paths:
    M Lib/test/test_codecencodings_cn.py
    M Misc/NEWS
    M Modules/cjkcodecs/_codecs_cn.c

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list