summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-15 13:55:46 (GMT)
committerGitHub <noreply@github.com>2023-11-15 13:55:46 (GMT)
commit1445d77282f9082f3fecde772ddf6bb2f5a383f1 (patch)
tree0c94d2b0777b2f9c67c6debc5c3cdc3b63a58fdc /Misc/NEWS.d
parent91a33fde4826967aa929e53a234aff8a419c5166 (diff)
downloadcpython-1445d77282f9082f3fecde772ddf6bb2f5a383f1.zip
cpython-1445d77282f9082f3fecde772ddf6bb2f5a383f1.tar.gz
cpython-1445d77282f9082f3fecde772ddf6bb2f5a383f1.tar.bz2
[3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor (GH-112061) (GH-112089)
In non-debug more the check for the "errors" argument is skipped, and then PyUnicode_AsUTF8() can fail, but its result was not checked. Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 9302f05f9af07332c414b3c19003efd1b1763cf3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2023-11-14-18-43-55.gh-issue-111942.x1pnrj.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-11-14-18-43-55.gh-issue-111942.x1pnrj.rst b/Misc/NEWS.d/next/Library/2023-11-14-18-43-55.gh-issue-111942.x1pnrj.rst
new file mode 100644
index 0000000..ca58a6f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-11-14-18-43-55.gh-issue-111942.x1pnrj.rst
@@ -0,0 +1,2 @@
+Fix SystemError in the TextIOWrapper constructor with non-encodable "errors"
+argument in non-debug mode.