Serhiy Storchaka <[email protected]> added the comment:
A consequence of this is that ast.literal_eval() can crash.
>>> import ast
>>> ast.literal_eval("+0"*200000)
Segmentation fault (core dumped)
It should be documented that ast.literal_eval() is not safe.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32758>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com