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/testdir/test_regexp_latin.vim | |
parent | 615ddd5342b50a6878a907062aa471740bd9a847 (diff) |
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/testdir/test_regexp_latin.vim')
-rw-r--r-- | src/testdir/test_regexp_latin.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim index c487b274d2..96c317736d 100644 --- a/src/testdir/test_regexp_latin.vim +++ b/src/testdir/test_regexp_latin.vim @@ -1037,4 +1037,12 @@ func Test_matching_pos() set re& endfunc +func Test_using_mark_position() + " this was using freed memory + new + norm O0 + call assert_fails("s/\\%')", 'E486:') + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |