cpython/Modules/_sqlite
Miss Islington (bot) cd046264fc
[3.14] gh-159739: Keep SQLite list parameters alive while binding (GH-160192) (#160362)
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-23 00:13:19 +00:00
..
clinic [3.14] gh-155952: Fix <unrepresentable> Argument Clinic defaults in several signatures (#156172) 2026-08-21 13:23:30 +01:00
blob.c [3.14] gh-150449: Raise ValueError for sqlite3.Blob slices with a negative step (GH-155773) (GH-159110) 2026-10-10 11:42:41 +00:00
blob.h
connection.c [3.14] gh-155952: Fix <unrepresentable> Argument Clinic defaults in several signatures (#156172) 2026-08-21 13:23:30 +01:00
connection.h [3.14] gh-142830: prevent some crashes when mutating sqlite3 callbacks (GH-143245) (#143322) 2026-01-01 11:24:21 +00:00
cursor.c [3.14] gh-159739: Keep SQLite list parameters alive while binding (GH-160192) (#160362) 2026-10-23 00:13:19 +00:00
cursor.h [3.14] gh-139283: correctly handle size limit in cursor.fetchmany() (GH-139296) (GH-139441) 2025-10-07 21:23:08 +02:00
microprotocols.c
microprotocols.h
module.c [3.14] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690) (#141793) 2025-11-30 14:32:11 +02:00
module.h
prepare_protocol.c gh-111178: fix UBSan failures in Modules/_sqlite (GH-129087) 2025-01-31 14:33:30 +01:00
prepare_protocol.h
row.c [3.14] gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value (GH-153696) (#153724) 2026-07-14 22:49:09 +00:00
row.h
statement.c gh-129928: Rework sqlite3 error helpers (#129929) 2025-02-11 07:49:25 +00:00
statement.h
util.c gh-129928: Rework sqlite3 error helpers (#129929) 2025-02-11 07:49:25 +00:00
util.h gh-129928: Rework sqlite3 error helpers (#129929) 2025-02-11 07:49:25 +00:00