]> 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:03 +0000 (13:14 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 2 Oct 2015 10:14:03 +0000 (13:14 +0300)
commit29e68edbf47b708c1f7082c2235d82f41e747635
tree554941fc129b51181ea2aa7799a967a3042ebcec
parent5dbe245ef238762c8e1100885e8671bf2e089157
parent58c8f2bb6de115b620cec3cf995f04005573765c
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.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).
Lib/test/test_codecs.py
Misc/NEWS
Objects/unicodeobject.c