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".
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c4b4902..6164510 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2321,7 +2321,7 @@
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;
}