Repository navigation
Commit cd04626
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 4df47d8)
Co-authored-by: Jelle Zijlstra <jelle@openai.com>
1 parent ef35d82 commit cd04626
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- Misc/NEWS.d/next/Library
- Modules/_sqlite
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
| 689 | + | |
691 | 690 | | |
692 | 691 | | |
693 | 692 | | |
| |||
0 commit comments