gh-69093: Don't allow instantiation of sqlite3.Blob objects (GH-91570)

This commit is contained in:
Erlend Egeberg Aasland 2022-04-15 18:25:03 +02:00 committed by GitHub
parent 72965981d1
commit d104f4d21f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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,
};