Skip to content

patch 9.2.XXXX: Vim9: crash with deeply nested parentheses - #21636

Open
chrisbra wants to merge 1 commit into
vim:masterfrom
chrisbra:gh-21630
Open

chrisbra wants to merge 1 commit into
vim:masterfrom
chrisbra:gh-21630

Conversation

@chrisbra

Copy link
Copy Markdown
Member
Problem:  Vim9: setfault when compiling an expression with deeply nested
          parentheses (Evaopo).
Solution: Limit the recursion in compile_parenthesis() like in eval9()

fixes: #21630

AI assistance

  • AI involvement is disclosed in the commit message
  • No AI was used

Checklist

  • The commit message follows the Problem/Solution form above
  • Signed-off-by: trailer is present (git commit -s), recommended but not required

Tests

  • Tests were added
  • Existing tests cover the change
  • The change cannot be tested (explain below)

Documentation

  • Documentation under runtime/doc/ was updated
  • No documentation update is needed

Problem:  Vim9: setfault when compiling an expression with deeply nested
          parentheses (Evaopo).
Solution: Limit the recursion in compile_parenthesis() like in eval9()

fixes:  vim#21630

Signed-off-by: Christian Brabandt <cb@256bit.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmentation Fault in vim

1 participant