Skip to content

[3.9] bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)#22344

Merged
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-bfee9fa-3.9
Sep 21, 2020
Merged

[3.9] bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)#22344
miss-islington merged 1 commit into
python:3.9from
miss-islington:backport-bfee9fa-3.9

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 21, 2020

Copy link
Copy Markdown
Contributor

GH- [bpo-41815](): SQLite: fix segfault if backup called on closed database

Attempting to backup a closed database will trigger segfault:

import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)

(cherry picked from commit bfee9fa)

Co-authored-by: Peter McCormick peter@pdmccormick.com

https://bugs.python.org/issue41815

…onGH-22322)

GH- [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)
```
(cherry picked from commit bfee9fa)

Co-authored-by: Peter McCormick <peter@pdmccormick.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@pdmccormick: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit 4ee30c4 into python:3.9 Sep 21, 2020
@miss-islington
miss-islington deleted the backport-bfee9fa-3.9 branch September 21, 2020 22:05
@ambv

ambv commented Oct 4, 2020

Copy link
Copy Markdown
Contributor

This goes into 3.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants