diff options
author | f380cedric <f380cedric@users.noreply.github.com> | 2022-01-27 14:59:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 14:59:30 +0100 |
commit | c5ac04331bdde5dd226c8e058103ed0fd1d140b7 (patch) | |
tree | b28a0803debe17061b7a30a96a9ad35060adff27 /src/nvim/testdir | |
parent | 5182627ce97162b90d8d6c34408c4ce937e1072c (diff) | |
download | rneovim-c5ac04331bdde5dd226c8e058103ed0fd1d140b7.tar.gz rneovim-c5ac04331bdde5dd226c8e058103ed0fd1d140b7.tar.bz2 rneovim-c5ac04331bdde5dd226c8e058103ed0fd1d140b7.zip |
vim-patch:8.2.3612: using freed memory with regexp using a mark (#16973)
Problem: Using freed memory with regexp using a mark.
Solution: Get the line again after getting the mark position.
https://github.com/vim/vim/commit/64066b9acd9f8cffdf4840f797748f938a13f2d6
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index 712f1e6025..a92f7e1192 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -787,4 +787,12 @@ func Test_regexp_error() 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 |