mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
vim-patch:8.1.0192: executing regexp recursively fails with a crash
Problem: Executing regexp recursively fails with a crash.
Solution: Move global variables into "rex".
0270f38e1a
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -72,6 +72,7 @@ struct regprog {
|
||||
unsigned regflags;
|
||||
unsigned re_engine; ///< Automatic, backtracking or NFA engine.
|
||||
unsigned re_flags; ///< Second argument for vim_regcomp().
|
||||
bool re_in_use; ///< prog is being executed
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -84,7 +85,8 @@ typedef struct {
|
||||
regengine_T *engine;
|
||||
unsigned regflags;
|
||||
unsigned re_engine;
|
||||
unsigned re_flags; ///< Second argument for vim_regcomp().
|
||||
unsigned re_flags;
|
||||
bool re_in_use;
|
||||
|
||||
int regstart;
|
||||
char_u reganch;
|
||||
@@ -114,7 +116,8 @@ typedef struct {
|
||||
regengine_T *engine;
|
||||
unsigned regflags;
|
||||
unsigned re_engine;
|
||||
unsigned re_flags; ///< Second argument for vim_regcomp().
|
||||
unsigned re_flags;
|
||||
bool re_in_use;
|
||||
|
||||
nfa_state_T *start; // points into state[]
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user