gh-111942: Fix crashes in TextIOWrapper.reconfigure()#111976
gh-111942: Fix crashes in TextIOWrapper.reconfigure()#111976serhiy-storchaka merged 2 commits intopython:mainfrom
Conversation
* Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments.
|
to: Then clinic will do the type check. This makes the |
It is more complex change, some code uses I plan such changes, but I am not sure that they will be backported. On other hand, the fix for a crash should be backported. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…-111976) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments. (cherry picked from commit ee06fff) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-112058 is a backport of this pull request to the 3.12 branch. |
…-111976) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments. (cherry picked from commit ee06fff) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-112059 is a backport of this pull request to the 3.11 branch. |
|
|
…) (GH-112058) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments. (cherry picked from commit ee06fff) Co-authored-by: Serhiy Storchaka <[email protected]>
|
|
@serhiy-storchaka: test_io now fails if Python is built in release mode. This issue now prevents to make any further change, since Address Sanitizer builds Python in release mode and fails. |
|
I wrote #112067 to fix the regression. |
…) (GH-112059) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments. (cherry picked from commit ee06fff) Co-authored-by: Serhiy Storchaka <[email protected]>
…-111976) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments.
…-111976) * Fix crash when encoding is not string or None. * Fix crash when both line_buffering and write_through raise exception when converted ti int. * Add a number of tests for constructor and reconfigure() method with invalid arguments.
Uh oh!
There was an error while loading. Please reload this page.