]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#92278)
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>
Thu, 5 May 2022 19:47:58 +0000 (21:47 +0200)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 19:47:58 +0000 (12:47 -0700)
commit7d17a7b35265ed82fe33fe3eee355152357859be
tree8f44e0fc2a3bbbe2591f93f5e899af5ff66c997d
parentd82a769a1ded6dfa702800c83a68d051299b01fc
[3.9] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#92278)

* [3.9] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters

(cherry picked from commit c908dc5b4798c311981bd7e1f7d92fb623ee448b)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Fix ref leak in pysqlite_cursor_iternext

* Explicitly free resources at test tearDown()
Lib/sqlite3/test/regression.py
Misc/NEWS.d/next/Library/2019-06-22-11-01-45.bpo-36073.ED8mB9.rst [new file with mode: 0644]
Modules/_sqlite/cursor.c