mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Merged revisions 65227 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65227 | antoine.pitrou | 2008-07-25 19:45:59 +0200 (ven., 25 juil. 2008) | 3 lines #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions ........
This commit is contained in:
parent
abd9a59763
commit
5ffd9e9cc9
2 changed files with 4 additions and 1 deletions
|
@ -1727,7 +1727,7 @@ PyObject *PyUnicode_DecodeUTF7Stateful(const char *s,
|
|||
while (s < e) {
|
||||
Py_UNICODE ch;
|
||||
restart:
|
||||
ch = *s;
|
||||
ch = (unsigned char) *s;
|
||||
|
||||
if (inShift) {
|
||||
if ((ch == '-') || !B64CHAR(ch)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue