[issue23321] Crash in str.decode() with special error handler

2015-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23321 ___

[issue23321] Crash in str.decode() with special error handler

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23321 ___ ___ Python-bugs-list mailing list

[issue23321] Crash in str.decode() with special error handler

2015-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you have no enhancements to my quick fix Victor, may be this issue can be closed. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23321

[issue23321] Crash in str.decode() with special error handler

2015-01-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the changeset which made decoders to use _PyUnicodeWriter (issue16311) is responsible of the regression. For example consider b'\x80abc'.decode('utf-8', 'backslashreplace'). The writer reserves string buffer with size 4 (every byte produces at most

[issue23321] Crash in str.decode() with special error handler

2015-01-26 Thread STINNER Victor
STINNER Victor added the comment: Debugging build crashes in some circumstances in str.decode() (...) buildbots are broken without it Is it a regression? Would it be possible to identify the changeset responsible of the regression? -- ___ Python

[issue23321] Crash in str.decode() with special error handler

2015-01-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e8937861ee3 by Victor Stinner in branch 'default': Issue #22286, #23321: Fix failing test on Windows code page 932 https://hg.python.org/cpython/rev/1e8937861ee3 -- ___ Python tracker

[issue23321] Crash in str.decode() with special error handler

2015-01-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Debugging build crashes in some circumstances in str.decode() with error handler which produces replacement string with length larger than malformed data. For example the backslashreplace error handler produces 4-character string for every illegal byte.

[issue23321] Crash in str.decode() with special error handler

2015-01-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2de90090e486 by Serhiy Storchaka in branch '3.4': Issue #23321: Fixed a crash in str.decode() when error handler returned https://hg.python.org/cpython/rev/2de90090e486 New changeset 1cd68b3c46aa by Serhiy Storchaka in branch 'default': Issue

[issue23321] Crash in str.decode() with special error handler

2015-01-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23321 ___