You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use a loop to collect args in the parser instead of recursion #85856
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-09-02.20:31:14.576>created_at=<Date2020-09-02.10:59:21.311>labels= ['3.9', '3.10']
title='Use a loop to collect args in the parser instead of recursion'updated_at=<Date2020-09-02.20:31:14.576>user='https://github.com/pablogsal'
New changeset 8de34cd 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) 8de34cd
Activity
pablogsal commentedon Sep 2, 2020
This program can segfault the parser by stackoverflow:
the reason is that the rule for arguments has a simple recursion when collecting args:
args[expr_ty]:
[...]
| a=named_expression b=[',' c=args { c }] {
[...] }
Check https://github.com/we-like-parsers/pegen/issues/245 for more context and informaton
pablogsal commentedon Sep 2, 2020
New changeset 4a97b15 by Pablo Galindo in branch 'master':
bpo-41690: Use a loop to collect args in the parser instead of recursion (GH-22053)
4a97b15
pablogsal commentedon Sep 2, 2020
New changeset 8de34cd 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)
8de34cd