[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

Pablo Galindo Salgado report at bugs.python.org
Fri Dec 17 21:05:23 EST 2021


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

This is a known issue for recursive descendent parsers. The only thing we can do here is somehow limit the maximum stack depth of the C stack, but that can:

* Slow down the parser.
* Limit valid expressions that otherwise won't segfault.
* Still don't work in certain systems.

----------

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


More information about the Python-bugs-list mailing list