[issue45325] Allow "p" in Py_BuildValue

STINNER Victor report at bugs.python.org
Wed Sep 29 16:33:40 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

> but there is a catch -- the arguments should be a C int. If it is not, you can break a stack.

I never understood how "..." arguments work under the hood. What happens if you pass a double, it is stored as a double on the C stack, and then Py_BuildValue() will read junk data?

----------

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


More information about the Python-bugs-list mailing list