[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8de34cdb952a2e3b8d7a9a213845cad01a8cece3 by Pablo Galindo in branch '3.9': [3.9] bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053) (GH-22067)

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21157 pull_request: https://github.com/python/cpython/pull/22067 ___ Python tracker ___

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4a97b1517a6b5ff22e2984b677a680b07ff0ce11 by Pablo Galindo in branch 'master': bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053)

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +21153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22053 ___ Python tracker

[issue41690] Use a loop to collect args in the parser instead of recursion

2020-09-02 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : This program can segfault the parser by stackoverflow: import ast code = "f(" + ",".join(['a' for _ in range(10)]) + ")" print("Ready!") ast.parse(code) the reason is that the rule for arguments has a simple recursion when collecting args: