mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
# [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)
```
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backup.py | ||
| dbapi.py | ||
| dump.py | ||
| factory.py | ||
| hooks.py | ||
| regression.py | ||
| transactions.py | ||
| types.py | ||
| userfunctions.py | ||