mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
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:
parent
bc3777d85e
commit
e9741f3ed8
3 changed files with 16 additions and 1 deletions
|
@ -2321,7 +2321,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue