]> granicus.if.org Git - python/commit
[3.6] bpo-32583: Fix possible crashing in builtin Unicode decoders (GH-5325) (#5459)
authorXiang Zhang <angwerzx@126.com>
Wed, 31 Jan 2018 13:34:17 +0000 (21:34 +0800)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2018 13:34:17 +0000 (21:34 +0800)
commitea94fce6960d90fffeeda131e31024617912d231
tree6ddaec1c139817e5f8d643038536ec8751ff75ac
parenteb126eddbd7542ac9d7cd2736116aee2e0bd03dd
[3.6] bpo-32583: Fix possible crashing in builtin Unicode decoders (GH-5325) (#5459)

When using customized decode error handlers, it is possible for builtin decoders
to write out-of-bounds and then crash..
(cherry picked from commit 2c7fd46e11333ef5e5cce34212f7d087694f3658)
Lib/test/test_codeccallbacks.py
Misc/NEWS.d/next/Core and Builtins/2018-01-26-21-20-21.bpo-32583.Fh3fau.rst [new file with mode: 0644]
Objects/unicodeobject.c