diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2018-12-05 17:50:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-05 17:50:26 (GMT) |
commit | 5b25f1d03100e2283c1b129d461ba68ac0169a14 (patch) | |
tree | 071d15ff6170a1180a57e35ee703b6b27e6d0046 /Misc | |
parent | f2f4555d8287ad217a1dba7bbd93103ad4daf3a8 (diff) | |
download | cpython-5b25f1d03100e2283c1b129d461ba68ac0169a14.zip cpython-5b25f1d03100e2283c1b129d461ba68ac0169a14.tar.gz cpython-5b25f1d03100e2283c1b129d461ba68ac0169a14.tar.bz2 |
bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. (GH-8113)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-07-24-16-37-40.bpo-34052.VbbFAE.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-07-24-16-37-40.bpo-34052.VbbFAE.rst b/Misc/NEWS.d/next/Library/2018-07-24-16-37-40.bpo-34052.VbbFAE.rst new file mode 100644 index 0000000..5aa3cc9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-07-24-16-37-40.bpo-34052.VbbFAE.rst @@ -0,0 +1,7 @@ +:meth:`sqlite3.Connection.create_aggregate`, +:meth:`sqlite3.Connection.create_function`, +:meth:`sqlite3.Connection.set_authorizer`, +:meth:`sqlite3.Connection.set_progress_handler` methods raises TypeError +when unhashable objects are passed as callable. These methods now don't pass +such objects to SQLite API. Previous behavior could lead to segfaults. Patch +by Sergey Fedoseev. |