diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-07-25 18:05:24 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-07-25 18:05:24 (GMT) |
commit | 5ffd9e9cc99d949e7e526c87be0c0fb2eea0225e (patch) | |
tree | 1f1f450c78452e75e37ea715914f85cde7e89f9c /Objects/unicodeobject.c | |
parent | abd9a597632e03219f7b32e2b8216ce288876ea0 (diff) | |
download | cpython-5ffd9e9cc99d949e7e526c87be0c0fb2eea0225e.zip cpython-5ffd9e9cc99d949e7e526c87be0c0fb2eea0225e.tar.gz cpython-5ffd9e9cc99d949e7e526c87be0c0fb2eea0225e.tar.bz2 |
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
........
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index b0b525a..838f537 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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)) { |