summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-17 11:33:31 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-17 11:33:31 (GMT)
commitf7a09bec0a57247d32801c94a1a7e7aaf2c9a3ae (patch)
tree754eff2aaa101b10f947ca015433b32652992557 /Objects
parentecc66d848e4700f51ab645fcff870c3c53dcbabd (diff)
downloadcpython-f7a09bec0a57247d32801c94a1a7e7aaf2c9a3ae.zip
cpython-f7a09bec0a57247d32801c94a1a7e7aaf2c9a3ae.tar.gz
cpython-f7a09bec0a57247d32801c94a1a7e7aaf2c9a3ae.tar.bz2
Merged revisions 74869 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74869 | georg.brandl | 2009-09-17 13:28:09 +0200 (Do, 17 Sep 2009) | 4 lines Issue #6922: Fix an infinite loop when trying to decode an invalid UTF-32 stream with a non-raising error handler like "replace" or "ignore". ........
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index e4f27e6..dbb2b49 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2207,7 +2207,7 @@ PyUnicode_DecodeUTF32Stateful(const char *s,
if (unicode_decode_call_errorhandler(
errors, &errorHandler,
"utf32", errmsg,
- starts, size, &startinpos, &endinpos, &exc, &s,
+ starts, size, &startinpos, &endinpos, &exc, (const char **)&q,
&unicode, &outpos, &p))
goto onError;
}