mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #23099: Closing io.BytesIO with exported buffer is rejected now to
prevent corrupting exported buffer.
This commit is contained in:
commit
32ca3dcb97
5 changed files with 23 additions and 7 deletions
|
|
@ -779,6 +779,7 @@ PyDoc_STRVAR(close_doc,
|
|||
static PyObject *
|
||||
bytesio_close(bytesio *self)
|
||||
{
|
||||
CHECK_EXPORTS(self);
|
||||
reset(self);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue