[3.10] gh-80254: Disallow recursive usage of cursors in `sqlite3` con… · python/cpython@c908dc5 · GitHub
Skip to content

Commit c908dc5

Browse files
erlend-aaslandsir-sigurdJelleZijlstra
committed
[3.10] gh-80254: Disallow recursive usage of cursors in sqlite3 converters (#29054)
(cherry picked from commit f629dcf) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent 31d9a88 commit c908dc5

3 files changed

Lines changed: 67 additions & 7 deletions

File tree

Lib/sqlite3/test/regression.py

Lines changed: 41 additions & 1 deletion
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Raise :exc:`~sqlite3.ProgrammingError` instead of segfaulting on recursive
2+
usage of cursors in :mod:`sqlite3` converters. Patch by Sergey Fedoseev.

Modules/_sqlite/cursor.c

Lines changed: 24 additions & 6 deletions

0 commit comments

Comments
 (0)