[issue43435] Py_BuildValue("y#".... returns incomplete result
Christian Heimes
report at bugs.python.org
Mon Mar 8 12:47:04 EST 2021
Christian Heimes <lists at cheimes.de> added the comment:
Does mcrypt_generic() output base64 or ASCII-only data? Since you are converting the output to bytes, I assume the output may contain any byte. In that case strcpy() is not safe. You have to use memcpy().
Fun fact: Nintendo had a similar bug many years ago, check out "trucha bug"
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43435>
_______________________________________
More information about the Python-bugs-list
mailing list