[issue43363] memcpy writes to wrong destination
Josh Rosenberg
report at bugs.python.org
Tue Mar 2 21:56:46 EST 2021
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
Agreed, stack is a PyObject**, so adding an integer (pto_nargs) to the pointer (stack) is implicitly by multiples of sizeof(PyObject*). This is how pointer arithmetic works in all versions of C I'm aware of. The code is correct.
----------
nosy: +josh.r
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43363>
_______________________________________
More information about the Python-bugs-list
mailing list