[issue26168] Py_BuildValue may leak 'N' arguments on PyTuple_New failure

Martin Panter report at bugs.python.org
Sat Jan 30 06:36:59 EST 2016


Martin Panter added the comment:

I was going to suggest just documenting your use-after-free case as a limitation of the N format. I doubt there is much demand to give away a borrowed reference with N _and_ rely on that borrowed reference staying alive for other parameters. It seems a lot of churn just to avoid a theoretical problem.

----------

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


More information about the Python-bugs-list mailing list