From: Serhiy Storchaka Date: Fri, 2 Oct 2015 10:13:14 +0000 (+0300) Subject: Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: X-Git-Tag: v3.5.1rc1~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58c8f2bb6de115b620cec3cf995f04005573765c;p=thirdparty%2FPython%2Fcpython.git 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). --- 58c8f2bb6de115b620cec3cf995f04005573765c