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
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 gh-69093: Support basic incremental I/O to blobs in sqlite3 (GH-30680) 2022-04-14 17:02:56 -07:00
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
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
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
prepare_protocol.h
row.c
row.h gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
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
util.h