From a8bfa1727a370d659dc0ccc3f0fd1763b10b5457 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 29 Dec 2018 22:28:46 +0100 Subject: 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. --- src/proto/regexp.pro | 1 + 1 file changed, 1 insertion(+) (limited to 'src/proto/regexp.pro') diff --git a/src/proto/regexp.pro b/src/proto/regexp.pro index d22a83b0e..a33fdd989 100644 --- a/src/proto/regexp.pro +++ b/src/proto/regexp.pro @@ -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); -- cgit v1.2.1