[issue15994] memoryview to freed memory can cause segfault

Martin Panter report at bugs.python.org
Sat Oct 31 01:30:26 EDT 2015


Martin Panter added the comment:

Saving a reference to the overall buffered reader is probably not good enough. I think the buffer is freed when close() is called, so a reference to this internal buffer would need to be saved instead (or as well). Unless we stop having close() free the buffer.

----------
components: +IO
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15994>
_______________________________________


More information about the Python-bugs-list mailing list