]> granicus.if.org Git - vim/commit
patch 8.2.4253: using freed memory when substitute with function call v8.2.4253
authorBram Moolenaar <Bram@vim.org>
Sat, 29 Jan 2022 14:21:51 +0000 (14:21 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 29 Jan 2022 14:21:51 +0000 (14:21 +0000)
commit37f47958b8a2a44abc60614271d9537e7f14e51a
tree93ecab84af2e5191851cef159b559f2267ef233e
parent4dc0dd869972ddafc7d9ee5ea765645b818a6dc9
patch 8.2.4253: using freed memory when substitute with function call

Problem:    Using freed memory when substitute uses a recursive function call.
Solution:   Make a copy of the substitute text.
src/ex_cmds.c
src/testdir/test_substitute.vim
src/version.c