Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-34052: Prevent SQLite functions from setting callbacks on excepti…
…ons. (GH-8113)
- Loading branch information
1 parent
f2f4555
commit 5b25f1d
Showing
3 changed files
with
84 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
7 changes: 7 additions & 0 deletions
7
Misc/NEWS.d/next/Library/2018-07-24-16-37-40.bpo-34052.VbbFAE.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains 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