Files
cpython/Modules/_sqlite
Miss Islington (bot)andJelle Zijlstra 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
..