[issue5765] stack overflow evaluating eval("()" * 30000)
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Aug 20 00:35:31 CEST 2012
Amaury Forgeot d'Arc added the comment:
The patch is incomplete: the VISIT macro contains a "return 0;" and in this case st->recursion_depth is not decremented.
OTOH errors are never caught, so it's not necessary to do any cleanup in case of errors.
Here is a simplified patch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5765>
_______________________________________
More information about the Python-bugs-list
mailing list