diff options
author | Peter McCormick <peter@pdmccormick.com> | 2020-09-20 03:40:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 03:40:46 (GMT) |
commit | bfee9fad84531a471fd7864e88947320669f68e2 (patch) | |
tree | 23627320837bd9104bc215ed274fc07eafce0b44 /Misc | |
parent | c8c70e78762315643fcd132911bad38842a3e8af (diff) | |
download | cpython-bfee9fad84531a471fd7864e88947320669f68e2.zip cpython-bfee9fad84531a471fd7864e88947320669f68e2.tar.gz cpython-bfee9fad84531a471fd7864e88947320669f68e2.tar.bz2 |
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
# [bpo-41815](): SQLite: fix segfault if backup called on closed database
Attempting to backup a closed database will trigger segfault:
```python
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)
```
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-09-19-23-14-54.bpo-41815.RNpuX3.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-09-19-23-14-54.bpo-41815.RNpuX3.rst b/Misc/NEWS.d/next/Library/2020-09-19-23-14-54.bpo-41815.RNpuX3.rst new file mode 100644 index 0000000..3560db9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-09-19-23-14-54.bpo-41815.RNpuX3.rst @@ -0,0 +1,2 @@ +Fix SQLite3 segfault when backing up closed database. Patch contributed by +Peter David McCormick. |