bpo-25862: Fix several bugs in the _io module. (GH-8026)
They can be exposed when some C API calls fail due to lack of memory. * Failed Py_BuildValue() could cause an assertion error in the following TextIOWrapper.tell(). * input_chunk could be decrefed twice in TextIOWrapper.seek() after failed Py_BuildValue(). * initvalue could leak in StringIO.__getstate__() after failed PyDict_Copy().
S
Serhiy Storchaka committed
fdb5a50ef34f7951c3b01eb77b1359725a9ad670
Parent: 0cdf5f4
Committed by GitHub <noreply@github.com>
on 6/30/2018, 5:57:50 PM