[issue36819] Crash during encoding using UTF-16/32 and custom error handler

Marc-Andre Lemburg report at bugs.python.org
Wed Sep 29 04:49:15 EDT 2021


Marc-Andre Lemburg <mal at egenix.com> added the comment:

On 29.09.2021 10:41, Serhiy Storchaka wrote:
> 
> Restricting the returned position to be strictly larger than start would solve the problem with infinite loop and OOM. But this is a different issue.

Yes, this would make sense, since having the codec process
the same error location over and over again will not resolve the
error, so it's clearly a bug in the error handler.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36819>
_______________________________________


More information about the Python-bugs-list mailing list