diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-17 18:22:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-17 18:22:56 +0000 |
commit | 64066b9acd9f8cffdf4840f797748f938a13f2d6 (patch) | |
tree | 90b2970896cda7facf1524299581322a26e044d0 /src/regexp.c | |
parent | 615ddd5342b50a6878a907062aa471740bd9a847 (diff) | |
download | vim-git-64066b9acd9f8cffdf4840f797748f938a13f2d6.tar.gz |
patch 8.2.3612: using freed memory with regexp using a markv8.2.3612
Problem: Using freed memory with regexp using a mark.
Solution: Get the line again after getting the mark position.
Diffstat (limited to 'src/regexp.c')
-rw-r--r-- | src/regexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c index e28d9e695..4b1474579 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -1129,7 +1129,7 @@ typedef struct { // The current match-position is stord in these variables: linenr_T lnum; // line number, relative to first line char_u *line; // start of current line - char_u *input; // current input, points into "regline" + char_u *input; // current input, points into "line" int need_clear_subexpr; // subexpressions still need to be cleared #ifdef FEAT_SYN_HL |