Skip to content

Conversation

miss-islington
Copy link
Contributor

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

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 [email protected]

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 <[email protected]>
@miss-islington
Copy link
Contributor Author

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

@miss-islington
Copy link
Contributor Author

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

@miss-islington miss-islington merged commit ca2d99d into python:3.8 Sep 21, 2020
@miss-islington miss-islington deleted the backport-bfee9fa-3.8 branch September 21, 2020 22:00
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.

5 participants