commit | c8e4bed1c5a11b0447feb38d0870af056a71ad2c | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Fri Jul 25 19:00:48 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Fri Jul 25 19:00:48 2008 +0000 |
tree | cc2308b54eb269da7e4daa7e793f89ffe13ed413 | |
parent | ab396e07cc7c6aff0723d406f3037b24645b6049 [diff] [blame] |
#2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e2f1ed3..3cf7fa6 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -974,7 +974,7 @@ while (s < e) { Py_UNICODE ch; restart: - ch = *s; + ch = (unsigned char) *s; if (inShift) { if ((ch == '-') || !B64CHAR(ch)) {