[3.7] gh-80254: Disallow recursive usage of cursors in sqlite3 conver… · python/cpython@2a353b2 · GitHub
Skip to content

Commit 2a353b2

Browse files
erlend-aaslandsir-sigurdJelleZijlstra
authored
[3.7] gh-80254: Disallow recursive usage of cursors in sqlite3 converters (GH-92334)
(cherry picked from commit c908dc5) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent aebbd75 commit 2a353b2

3 files changed

Lines changed: 76 additions & 14 deletions

File tree

Lib/sqlite3/test/regression.py

Lines changed: 42 additions & 0 deletions
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: 32 additions & 14 deletions

0 commit comments

Comments
 (0)