FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor (GH-112061) by miss-islington · Pull Request #112085 · python/cpython · GitHub

/ cpython Public

[3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor (GH-112061) - #112085

Closed
miss-islington wants to merge 1 commit into
python:3.12from
miss-islington:backport-9302f05-3.12
Closed

[3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor (GH-112061)#112085
miss-islington wants to merge 1 commit into
python:3.12from
miss-islington:backport-9302f05-3.12

Conversation

miss-islington commented Nov 14, 2023
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

In non-debug more the check for the "errors" argument is skipped,
and then PyUnicode_AsUTF8() can fail, but its result was not checked.

(cherry picked from commit 9302f05)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Victor Stinner vstinner@python.org

…thonGH-112061)

In non-debug more the check for the "errors" argument is skipped,
and then PyUnicode_AsUTF8() can fail, but its result was not checked.

(cherry picked from commit 9302f05)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>

Copy link
Copy Markdown
Member

This PR uses _PyUnicode_AsUTF8NoNUL() which doesn't exist in Python 3.12. I created #112089 backport instead.

vstinner closed this Nov 14, 2023
auto-merge was automatically disabled November 14, 2023 21:00

Pull request was closed

miss-islington deleted the backport-9302f05-3.12 branch January 2, 2026 17:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL