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

2019-05-06 Thread Andrei Talaba
New submission from Andrei Talaba : The CPython interpreter write out-of-bounds of allocated memory in certain edge cases in the utf-16 and utf-32 encoders. The attached script registers two error handlers that either write one ascii character, or two bytes, and tells the encoder to start

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

2019-05-06 Thread Andrei Talaba
Change by Andrei Talaba : -- keywords: +patch pull_requests: +13047 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Py

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

2019-05-06 Thread Andrei Talaba
Change by Andrei Talaba : Removed file: https://bugs.python.org/file48304/encode_crash.py ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Python-bug

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

2019-05-06 Thread Andrei Talaba
Change by Andrei Talaba : Added file: https://bugs.python.org/file48305/encode_crash.py ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Python-bugs-list m