1
0
forked from aniani/vim

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

@@ -13,6 +13,7 @@ char_u *reg_submatch(int no);
list_T *reg_submatch_list(int no);
regprog_T *vim_regcomp(char_u *expr_arg, int re_flags);
void vim_regfree(regprog_T *prog);
int regprog_in_use(regprog_T *prog);
int vim_regexec_prog(regprog_T **prog, int ignore_case, char_u *line, colnr_T col);
int vim_regexec(regmatch_T *rmp, char_u *line, colnr_T col);
int vim_regexec_nl(regmatch_T *rmp, char_u *line, colnr_T col);