cpython/Modules/_sqlite
Miss Islington (bot) 7291b843d8
[3.15] gh-159739: Keep SQLite list parameters alive while binding (GH-160192) (#160361)
When a SQL parameter sequence is an exact list, sqlite3 retrieved an element as a borrowed reference before taking ownership. On free-threaded builds another thread can replace it in between, so binding can use a freed object and crash. Fetch a strong reference atomically. Backport to 3.15 and 3.14.
(cherry picked from commit 4df47d8e60)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
2026-10-22 23:59:01 +00:00
..
clinic [3.15] gh-113318: Fix @getter and @setter in Argument Clinic (GH-155778) (GH-156010) 2026-10-09 20:54:35 +03:00
blob.c [3.15] gh-150449: Raise ValueError for sqlite3.Blob slices with a negative step (GH-155773) 2026-10-09 18:35:20 +00:00
blob.h
connection.c [3.15] gh-156100: Fix crashes in the sqlite3 Connection.autocommit setter (GH-156104) (GH-156151) 2026-10-10 12:31:48 +03:00
connection.h gh-144377: Clean up sqlite3 Connection's list of weakrefs to Cursor objects (#144378) 2026-02-03 13:36:12 +01:00
cursor.c [3.15] gh-159739: Keep SQLite list parameters alive while binding (GH-160192) (#160361) 2026-10-22 23:59:01 +00:00
cursor.h gh-139283: correctly handle size limit in cursor.fetchmany() (#139296) 2025-09-30 11:18:55 +02:00
microprotocols.c
microprotocols.h
module.c gh-128341: Use _Py_ABI_SLOT in stdlib modules (#145770) 2026-03-24 17:47:55 +00:00
module.h
prepare_protocol.c gh-138342: Move _PyObject_VisitType() to the internal C API (#139734) 2025-10-08 12:10:58 +02:00
prepare_protocol.h
row.c [3.15] gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696) (#153723) 2026-07-14 22:55:51 +00:00
row.h
statement.c gh-139327: consolidate sqlite3_finalize and sqlite3_reset usages (GH-139329) 2025-10-15 15:18:07 +02:00
statement.h
util.c gh-139327: consolidate sqlite3_finalize and sqlite3_reset usages (GH-139329) 2025-10-15 15:18:07 +02:00
util.h gh-139327: consolidate sqlite3_finalize and sqlite3_reset usages (GH-139329) 2025-10-15 15:18:07 +02:00