[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

Antoine Pitrou report at bugs.python.org
Fri Dec 4 14:29:36 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Why do you say that:

> There is no feasible way the bf_releasebuffer can keep track of how many
> calls to it have been made.

Because that's exactly what e.g. bytearray objects do (see the
ob_exports field in Objects/bytearrayobject.c).

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list