mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	|  cb1c0746f2 When called on a closed object, readinto() segfaults on account
of a write to a freed buffer:
    ==220553== Process terminating with default action of signal 11 (SIGSEGV): dumping core
    ==220553==  Access not within mapped region at address 0x2A
    ==220553==    at 0x48408A0: memmove (vg_replace_strmem.c:1272)
    ==220553==    by 0x58DB0C: _buffered_readinto_generic (bufferedio.c:972)
    ==220553==    by 0x58DCBA: _io__Buffered_readinto_impl (bufferedio.c:1053)
    ==220553==    by 0x58DCBA: _io__Buffered_readinto (bufferedio.c.h:253)
Reproducer:
    reader = open ("/dev/zero", "rb")
    _void  = reader.read (42)
    reader.close ()
    reader.readinto (bytearray (42)) ### BANG!
The problem exists since 2012 when commit  | ||
|---|---|---|
| .. | ||
| 2019-12-03-16-41-22.bpo-38960.kvoFM0.rst | ||
| 2019-12-30-15-56-07.bpo-36051.imaVlq.rst | ||
| 2020-01-15-15-50-22.bpo-39320.oWARyk.rst | ||
| 2020-01-24-01-07-04.bpo-39434.S5ehj9.rst | ||
| 2020-01-25-23-51-17.bpo-39453.xCOkYk.rst | ||
| 2020-01-30-01-14-42.bpo-39492.eTuy0F.rst | ||
| 2020-02-04-10-27-41.bpo-39510.PMIh-f.rst | ||
| README.rst | ||
Put news entry `blurb`_ files for the *Core and Builtins* section in this directory. .. _blurb: https://pypi.org/project/blurb/