mirror of
https://github.com/neovim/neovim.git
synced 2026-08-19 02:24:46 -05:00
Problem: Deeply nested regexp groups can cause uncontrolled recursion
in the regexp compiler and exhaust the C stack.
Solution: Limit recursive regexp parsing depth in both the backtracking
and NFA compilers (lipengyu)
closes: vim/vim#20731
https://github.com/vim/vim/commit/a79cd6bfc3e85e1d9f1ec48eda76c7385b44bf69
Co-authored-by: lipengyu <lipengyu@kylinos.cn>