cpython/Modules/_sqlite
Miss Islington (bot) bd55c46895
bpo-41815: SQLite: segfault if backup called on closed database (GH-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 bfee9fad84)

Co-authored-by: Peter McCormick <peter@pdmccormick.com>
2020-10-04 18:36:45 +02:00
..
cache.c bpo-39245: Switch to public API for Vectorcall (GH-18460) 2020-02-11 17:46:57 +01:00
cache.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
connection.c bpo-41815: SQLite: segfault if backup called on closed database (GH-22322) 2020-10-04 18:36:45 +02:00
connection.h closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268) 2019-07-12 20:15:48 -07:00
cursor.c bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. (GH-18942) 2020-03-21 15:53:28 +02:00
cursor.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
microprotocols.c bpo-40268: Remove unused structmember.h includes (GH-19530) 2020-04-15 02:35:41 +02:00
microprotocols.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
module.c bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323) 2020-05-26 05:38:51 -07:00
module.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
prepare_protocol.c bpo-39573: Add Py_SET_TYPE() function (GH-18394) 2020-02-07 09:17:07 +01:00
prepare_protocol.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
row.c bpo-38185: Fixed case-insensitive string comparison in sqlite3.Row indexing. (GH-16190) 2019-09-17 09:20:56 +03:00
row.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
statement.c bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998) 2020-09-17 00:57:07 -07:00
statement.h bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) 2019-03-19 22:10:18 +09:00
util.c Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882) 2019-10-23 11:09:01 +03:00
util.h Replace _pysqlite_long_from_int64() with PyLong_FromLongLong() (GH-16882) 2019-10-23 11:09:01 +03:00