summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/blob.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2022-04-15 16:25:03 (GMT)
committerGitHub <noreply@github.com>2022-04-15 16:25:03 (GMT)
commitd104f4d21f735693ea93fe65ea4b4e1aa1779343 (patch)
treea3ae2169fb7e73fe8bf5beb394b80c1dd37edb7b /Modules/_sqlite/blob.c
parent72965981d1128b3923dad5e850c8cff626ae4dc7 (diff)
downloadcpython-d104f4d21f735693ea93fe65ea4b4e1aa1779343.zip
cpython-d104f4d21f735693ea93fe65ea4b4e1aa1779343.tar.gz
cpython-d104f4d21f735693ea93fe65ea4b4e1aa1779343.tar.bz2
gh-69093: Don't allow instantiation of sqlite3.Blob objects (GH-91570)
Diffstat (limited to 'Modules/_sqlite/blob.c')
-rw-r--r--Modules/_sqlite/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/blob.c b/Modules/_sqlite/blob.c
index 821295c..c4f8be4 100644
--- a/Modules/_sqlite/blob.c
+++ b/Modules/_sqlite/blob.c
@@ -334,7 +334,7 @@ static PyType_Spec blob_spec = {
.name = MODULE_NAME ".Blob",
.basicsize = sizeof(pysqlite_Blob),
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
- Py_TPFLAGS_IMMUTABLETYPE),
+ Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION),
.slots = blob_slots,
};