summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-07 21:22:01 (GMT)
committerGitHub <noreply@github.com>2023-06-07 21:22:01 (GMT)
commit571ec56b6503bbd1687c7f62203dab4c2dfe20ba (patch)
tree9ef1199fa49923aad0e61326b8275a4a4b915c62 /Misc
parent18e9fd80d956fd39ded581f91a9448aeff74b913 (diff)
downloadcpython-571ec56b6503bbd1687c7f62203dab4c2dfe20ba.zip
cpython-571ec56b6503bbd1687c7f62203dab4c2dfe20ba.tar.gz
cpython-571ec56b6503bbd1687c7f62203dab4c2dfe20ba.tar.bz2
[3.11] gh-105375: Improve error handling in sqlite3 collation callback (GH-105412) (#105441)
Check for error after each call to PyUnicode_FromStringAndSize(). (cherry picked from commit a24a780d937109a0982d807473ae410cc75b0e3b) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-06-07-00-09-52.gh-issue-105375.Y_9D4n.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-06-07-00-09-52.gh-issue-105375.Y_9D4n.rst b/Misc/NEWS.d/next/Library/2023-06-07-00-09-52.gh-issue-105375.Y_9D4n.rst
new file mode 100644
index 0000000..ec10d63
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-06-07-00-09-52.gh-issue-105375.Y_9D4n.rst
@@ -0,0 +1,2 @@
+Fix a bug in :mod:`sqlite3` where an exception could be overwritten in the
+:meth:`collation <sqlite3.Connection.create_collation>` callback.