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

Commit 69cf020

Browse files
erlend-aaslandsir-sigurdJelleZijlstra
authored
[3.8] gh-80254: Disallow recursive usage of cursors in sqlite3 converters (#92333)
(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 7ccdec3 commit 69cf020

3 files changed

Lines changed: 77 additions & 14 deletions

File tree

Lib/sqlite3/test/regression.py

Lines changed: 43 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)