[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Anthony for the report! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9b23f8f78fdb0d7eba016616ae7a97abbfc65aa6 by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-46707: Avoid potential exponential backtracking in some syntax errors (GH-31241). (GH-31242) https://github.com/python/cpython/commit/9b23f8f7

[issue46707] Parser hanging on stacked { tokens

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

[issue46707] Parser hanging on stacked { tokens

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

[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b71dc71905ab674ccaa4a56230d17a28f61c325c by Pablo Galindo Salgado in branch 'main': bpo-46707: Avoid potential exponential backtracking in some syntax errors (GH-31241) https://github.com/python/cpython/commit/b71dc71905ab674ccaa4a56230d

[issue46707] Parser hanging on stacked { tokens

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

[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread anthony shaw
Change by anthony shaw : -- versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread anthony shaw
New submission from anthony shaw : Providing an (invalid) input to the parser causes an exponentially-slow DoS to the Python executable in 3.10. e.g. python3.10 -c "{:" takes ~2 seconds python3.10 -c ":" takes ~22 seconds Tested this all the way