Martin Panter added the comment:

Going through the commits for Issue 22896, I noticed compile(), eval() and 
exec() also suffer from a similar flaw. They check strlen(buffer) but the 
buffer may not be null-terminated:

>>> eval(memoryview(b"1234")[1:3])
TypeError: source code string cannot contain null bytes

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24802>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to