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

Pablo Galindo Salgado report at bugs.python.org
Sun Jan 2 15:30:13 EST 2022


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

Guido, Eric, what are your thoughts here?

The fix that I merged works by limiting the maximum recursion but seems that incrementing the recursion counter on every parser call makes quite a lot of impact on startup.

Unfortunately if we revert the fix, we still have the problem that Python can segfault for certain inputs that overload the stack.

----------

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


More information about the Python-bugs-list mailing list