[issue30431] input function truncates prompt by NULL byte

Eryk Sun report at bugs.python.org
Mon May 22 16:24:41 EDT 2017


Eryk Sun added the comment:

PyOS_Readline uses a null-terminated prompt string. So input() needs to raise a ValueError if the prompt contains null characters, e.g. if PyBytes_GET_SIZE(po) != strlen(promptstr).

----------
nosy: +eryksun

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


More information about the Python-bugs-list mailing list