mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.3612: using freed memory with regexp using a mark
Problem: Using freed memory with regexp using a mark. Solution: Get the line again after getting the mark position.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user