[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

Jeroen Demeyer report at bugs.python.org
Mon May 13 16:09:21 EDT 2019


Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:

The idea of #36904 could be used here: define a special kind of tuple, which is like an ordinary tuple followed by a C array of PyObject* entries (all refcounted), terminated by a NULL to know where it ends. A special deallocation function would decref all entries.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36907>
_______________________________________


More information about the Python-bugs-list mailing list