[issue43435] Py_BuildValue("y#".... returns incomplete result
David Wood
report at bugs.python.org
Wed Mar 10 16:03:08 EST 2021
David Wood <dwoodjunkmail at gmail.com> added the comment:
Christian/Eric -
Thank you both so much for taking time on this. Christian had pointed out the use of memcpy vs strncpy. It turns out that while strncpy is designed to copy a specific number of chars, it turns out that it stops on null. I did make the change Christian suggested however, it turns out that strncpy was also used in the decrypt function which was also subject to the same problem.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43435>
_______________________________________
More information about the Python-bugs-list
mailing list