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".
........
This commit is contained in:
Georg Brandl 2009-09-17 11:33:31 +00:00
parent ecc66d848e
commit f7a09bec0a
3 changed files with 16 additions and 1 deletions

View file

@ -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;
}