cpython/Modules/_io
Miss Islington (bot) e5153d0d40
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().
(cherry picked from commit fdb5a50ef3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-30 11:25:50 -07:00
..
clinic Issue #27810: Regenerate Argument Clinic. 2016-09-11 21:25:45 +03:00
_iomodule.c Merge from 3.5. 2016-12-07 13:31:47 +02:00
_iomodule.h Issue #28217: Adds _testconsole module to test console input. Fixes some issues found by the tests. 2016-10-03 09:04:58 -07:00
bufferedio.c [3.6] bpo-32228: Reset raw_pos after unwinding the raw stream (GH-4858) (#5389) 2018-01-28 18:42:31 +01:00
bytesio.c bpo-31095: fix potential crash during GC (GH-3195) 2017-09-04 12:31:09 +09:00
fileio.c bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661) 2017-12-01 07:26:31 +01:00
iobase.c bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) (#1180) 2017-04-19 21:22:49 +03:00
stringio.c bpo-25862: Fix several bugs in the _io module. (GH-8026) 2018-06-30 11:25:50 -07:00
textio.c bpo-25862: Fix several bugs in the _io module. (GH-8026) 2018-06-30 11:25:50 -07:00
winconsoleio.c bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754) 2018-02-24 09:43:05 -08:00