]> granicus.if.org Git - python/commit
Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 2 Oct 2015 10:14:53 +0000 (13:14 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 2 Oct 2015 10:14:53 +0000 (13:14 +0300)
commite12f63218603f3e15592df7fba5a484f9ff5c004
tree2b07611f51da28e88360f9afc0e34b3290c6f2f5
parenta87633e59635a659aa7eb733094129c47187f8a3
Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:

1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
Lib/test/test_codecs.py
Lib/test/test_unicode.py
Misc/NEWS
Objects/unicodeobject.c