0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0661: clipboard regexp might be used recursively

Problem:    Clipboard regexp might be used recursively.
Solution:   Check for recursive use and bail out.
This commit is contained in:
Bram Moolenaar
2018-12-29 22:28:46 +01:00
parent 1ea88a3e12
commit a8bfa1727a
4 changed files with 19 additions and 1 deletions

View File

@@ -8209,6 +8209,15 @@ report_re_switch(char_u *pat)
}
#endif
/*
* Return whether "prog" is currently being executed.
*/
int
regprog_in_use(regprog_T *prog)
{
return prog->re_in_use;
}
/*
* Match a regexp against a string.
* "rmp->regprog" is a compiled regexp as returned by vim_regcomp().