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

1  2 
Lib/test/test_codecs.py
Lib/test/test_unicode.py
Misc/NEWS
Objects/unicodeobject.c

Simple merge
Simple merge
diff --cc Misc/NEWS
Simple merge
Simple merge