[issue46704] Parser API not checking for null-terminator

Pablo Galindo Salgado report at bugs.python.org
Wed Feb 9 21:38:13 EST 2022


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

The contract of that interface is to receive null-terminated strings, so I am a bit clueless on how this could receive a non-null terminated string.

Notice that calling CompileCode with a non-null terminated string is out of contract.

----------

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


More information about the Python-bugs-list mailing list